From 9314928990a6cbd0bc0abe3100872ba2682eda9a Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 6 Dec 2023 17:02:52 -0700 Subject: 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. --- ext/web/02_event.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/web') 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--; } -- cgit v1.2.3