Make isolate() public

This commit is contained in:
Cheng Zhao 2015-06-23 17:13:02 +08:00
parent 0586822808
commit cad1fa50a9

View file

@ -54,6 +54,9 @@ class Wrappable {
// object constructed by GetObjectTemplateBuilder. // object constructed by GetObjectTemplateBuilder.
v8::Local<v8::Object> GetWrapper(v8::Isolate* isolate); v8::Local<v8::Object> GetWrapper(v8::Isolate* isolate);
// Returns the Isolate this object is created in.
v8::Isolate* isolate() const { return isolate_; }
// Bind the C++ class to the JS wrapper. // Bind the C++ class to the JS wrapper.
void Wrap(v8::Isolate* isolate, v8::Local<v8::Object> wrapper); void Wrap(v8::Isolate* isolate, v8::Local<v8::Object> wrapper);
@ -66,9 +69,6 @@ class Wrappable {
Wrappable(); Wrappable();
virtual ~Wrappable(); virtual ~Wrappable();
// Returns the Isolate this object is created in.
v8::Isolate* isolate() const { return isolate_; }
virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate); virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate);
// Called after the "_init" method gets called in JavaScript. // Called after the "_init" method gets called in JavaScript.