fix: don't double-log unhandled rejections (#37464)
This commit is contained in:
parent
17ccb3c6ec
commit
829fb4f586
5 changed files with 56 additions and 2 deletions
|
@ -279,7 +279,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->options()->unhandled_rejections = "warn";
|
||||
env->options()->unhandled_rejections = "warn-with-error-code";
|
||||
|
||||
// Add Electron extended APIs.
|
||||
electron_bindings_->BindTo(js_env_->isolate(), env->process_object());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue