mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(repl): don't terminate on unhandled error events (#15548)
This commit is contained in:
parent
658d2cdff2
commit
a74b2ecf37
8 changed files with 76 additions and 44 deletions
|
@ -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--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue