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

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2023-03-14 11:50:46 +01:00
committed by GitHub
parent c1b8848fd7
commit 4382f2adc0
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);