Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Commit

Permalink
Add object() accessor for Dictionary.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jun 23, 2014
1 parent c79aecf commit 730acd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native_mate/dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<v8::Object> object);
~Dictionary();

Expand All @@ -48,6 +48,7 @@ class Dictionary {
CallbackTraits<T>::CreateTemplate(isolate_, callback)->GetFunction());
}

v8::Handle<v8::Object> object() const { return object_; }
v8::Isolate* isolate() const { return isolate_; }

private:
Expand Down

0 comments on commit 730acd5

Please sign in to comment.