From a74b2ecf379ddb1ff03c61d4e876153d7b4c45d2 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 2 Sep 2022 11:43:39 +0100 Subject: fix(repl): don't terminate on unhandled error events (#15548) --- ext/web/02_event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/web/02_event.js') diff --git a/ext/web/02_event.js b/ext/web/02_event.js index 105c7d3c4..ee64b3719 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -8,6 +8,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const webidl = window.__bootstrap.webidl; const { DOMException } = window.__bootstrap.domException; const consoleInternal = window.__bootstrap.console; @@ -1451,7 +1452,7 @@ }); // Avoid recursing `reportException()` via error handlers more than once. if (reportExceptionStackedCalls > 1 || window.dispatchEvent(event)) { - core.terminate(error); + ops.op_dispatch_exception(error); } reportExceptionStackedCalls--; } -- cgit v1.2.3