From 730acd59c757dec44c85ff4e8e7e8d7081f3d0ef Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 23 Jun 2014 21:11:00 +0800 Subject: [PATCH] Add object() accessor for Dictionary. --- native_mate/dictionary.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native_mate/dictionary.h b/native_mate/dictionary.h index 562d82a420..563916e459 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: