From cad1fa50a95ca4185c435846e4868d5bd6cc94df Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 23 Jun 2015 17:13:02 +0800 Subject: [PATCH] Make isolate() public --- native_mate/wrappable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native_mate/wrappable.h b/native_mate/wrappable.h index 172606f6853a..c827a859c858 100644 --- a/native_mate/wrappable.h +++ b/native_mate/wrappable.h @@ -54,6 +54,9 @@ class Wrappable { // object constructed by GetObjectTemplateBuilder. v8::Local 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. void Wrap(v8::Isolate* isolate, v8::Local wrapper); @@ -66,9 +69,6 @@ class Wrappable { Wrappable(); virtual ~Wrappable(); - // Returns the Isolate this object is created in. - v8::Isolate* isolate() const { return isolate_; } - virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate); // Called after the "_init" method gets called in JavaScript.