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
|
@ -96,7 +96,7 @@ void ElectronRendererClient::DidCreateScriptContext(
|
|||
env->options()->force_context_aware = true;
|
||||
|
||||
// We do not want to crash the renderer process on unhandled rejections.
|
||||
env->options()->unhandled_rejections = "warn";
|
||||
env->options()->unhandled_rejections = "warn-with-error-code";
|
||||
|
||||
environments_.insert(env);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue