Use mate::Dictionary::CreateEmpty
This commit is contained in:
parent
4107174cfd
commit
f1cd1c6dff
1 changed files with 4 additions and 4 deletions
|
@ -61,10 +61,10 @@ int NodeMain(int argc, char *argv[]) {
|
||||||
#endif
|
#endif
|
||||||
process.SetMethod("crash", &AtomBindings::Crash);
|
process.SetMethod("crash", &AtomBindings::Crash);
|
||||||
|
|
||||||
v8::Local<v8::Object> crashReporterObj = v8::Object::New(env->isolate());
|
mate::Dictionary crashReporter =
|
||||||
mate::Dictionary crashReporterDict(gin_env.isolate(), crashReporterObj);
|
mate::Dictionary::CreateEmpty(gin_env.isolate());
|
||||||
crashReporterDict.SetMethod("start", &AtomBindings::StartCrashReporter);
|
crashReporter.SetMethod("start", &AtomBindings::StartCrashReporter);
|
||||||
process.Set("crashReporter", crashReporterObj);
|
process.Set("crashReporter", crashReporter);
|
||||||
|
|
||||||
node::LoadEnvironment(env);
|
node::LoadEnvironment(env);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue