summaryrefslogtreecommitdiff
path: root/ext/web/02_event.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-09-02 11:43:39 +0100
committerGitHub <noreply@github.com>2022-09-02 12:43:39 +0200
commita74b2ecf379ddb1ff03c61d4e876153d7b4c45d2 (patch)
tree47b3fbe18ba35d59b4fb1062a53544f98656138a /ext/web/02_event.js
parent658d2cdff22646010915dc1f4a128de6c42a9f79 (diff)
fix(repl): don't terminate on unhandled error events (#15548)
Diffstat (limited to 'ext/web/02_event.js')
-rw-r--r--ext/web/02_event.js3
1 files changed, 2 insertions, 1 deletions
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--;
}