mirror of
https://github.com/electron/electron.git
synced 2026-02-14 09:05:01 -05:00
Add object() accessor for Dictionary.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user