diff --git a/native_mate/dictionary.h b/native_mate/dictionary.h index 562d82a4204a..563916e45980 100644 --- a/native_mate/dictionary.h +++ b/native_mate/dictionary.h @@ -24,7 +24,7 @@ namespace mate { // class Dictionary { public: - explicit Dictionary(v8::Isolate* isolate); + explicit Dictionary(v8::Isolate* isolate = NULL); Dictionary(v8::Isolate* isolate, v8::Handle object); ~Dictionary(); @@ -48,6 +48,7 @@ class Dictionary { CallbackTraits::CreateTemplate(isolate_, callback)->GetFunction()); } + v8::Handle object() const { return object_; } v8::Isolate* isolate() const { return isolate_; } private: