mirror of
https://github.com/electron/electron.git
synced 2026-02-14 00:55:19 -05:00
Enable creating empty Dictionary directly.
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
namespace mate {
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate)
|
||||
: isolate_(isolate) {
|
||||
: isolate_(isolate),
|
||||
object_(v8::Object::New()) {
|
||||
}
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate,
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace mate {
|
||||
//
|
||||
class Dictionary {
|
||||
public:
|
||||
explicit Dictionary(v8::Isolate* isolate = NULL);
|
||||
Dictionary(v8::Isolate* isolate = v8::Isolate::GetCurrent());
|
||||
Dictionary(v8::Isolate* isolate, v8::Handle<v8::Object> object);
|
||||
~Dictionary();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user