refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547)
This commit is contained in:
parent
9937a2bbe8
commit
09190085c0
29 changed files with 66 additions and 64 deletions
|
@ -222,7 +222,7 @@ int NodeMain(int argc, char* argv[]) {
|
|||
process.SetMethod("crash", &ElectronBindings::Crash);
|
||||
|
||||
// Setup process.crashReporter in child node processes
|
||||
gin_helper::Dictionary reporter = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto reporter = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
reporter.SetMethod("getParameters", &GetParameters);
|
||||
#if IS_MAS_BUILD()
|
||||
reporter.SetMethod("addExtraParameter", &SetCrashKeyStub);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue