summaryrefslogtreecommitdiff
path: root/ext/web/02_event.js
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-12-06 17:02:52 -0700
committerGitHub <noreply@github.com>2023-12-06 17:02:52 -0700
commit9314928990a6cbd0bc0abe3100872ba2682eda9a (patch)
tree462d19eeaac0974a752128ad5d8b64e1066be8af /ext/web/02_event.js
parent68d356eed91731cd0c13eb946f296aa90ef4d5ac (diff)
chore: bump deno_core and update tests (#21467)
Landing changes required for https://github.com/denoland/deno_core/pull/359 We needed to update 99_main.js and a whole load of tests. API changes: - setPromiseRejectCallback becomes setUnhandledPromiseRejectionHandler. The function is now called from eventLoopTick. - The promiseRejectMacrotaskCallback no longer exists, as this is automatically handled in eventLoopTick. - ops.op_dispatch_exception now takes a second parameter: in_promise. The preferred way to call this op is now reportUnhandledException or reportUnhandledPromiseRejection.
Diffstat (limited to 'ext/web/02_event.js')
-rw-r--r--ext/web/02_event.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/web/02_event.js b/ext/web/02_event.js
index 3690f62b7..f0c24f353 100644
--- a/ext/web/02_event.js
+++ b/ext/web/02_event.js
@@ -6,7 +6,6 @@
// and impossible logic branches based on what Deno currently supports.
const core = globalThis.Deno.core;
-const ops = core.ops;
import * as webidl from "ext:deno_webidl/00_webidl.js";
import DOMException from "ext:deno_web/01_dom_exception.js";
import { createFilteredInspectProxy } from "ext:deno_console/01_console.js";
@@ -1494,7 +1493,7 @@ function reportException(error) {
});
// Avoid recursing `reportException()` via error handlers more than once.
if (reportExceptionStackedCalls > 1 || globalThis_.dispatchEvent(event)) {
- ops.op_dispatch_exception(error);
+ core.reportUnhandledException(error);
}
reportExceptionStackedCalls--;
}