refactor: modify Node.js options object directly (#29939)
* refactor: modify Node.js options object directly * chore: update patch to reflect upstream
This commit is contained in:
parent
a310bd7473
commit
675bbfe092
5 changed files with 10 additions and 62 deletions
|
@ -250,7 +250,7 @@ void ElectronBrowserMainParts::PostEarlyInitialization() {
|
|||
env->set_trace_sync_io(env->options()->trace_sync_io);
|
||||
|
||||
// We do not want to crash the main process on unhandled rejections.
|
||||
env->set_unhandled_rejections_mode("warn");
|
||||
env->options()->unhandled_rejections = "warn";
|
||||
|
||||
// Add Electron extended APIs.
|
||||
electron_bindings_->BindTo(js_env_->isolate(), env->process_object());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue