fix: don't double-log unhandled rejections (#37464)

This commit is contained in:
Shelley Vohr 2023-03-06 11:04:43 +01:00 committed by GitHub
parent 17ccb3c6ec
commit 829fb4f586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 2 deletions

View file

@ -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);