Add object() accessor for Dictionary.
This commit is contained in:
parent
c79aecf64d
commit
730acd59c7
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue