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. --- cli/tests/testdata/test/no_check.out | 4 ++-- cli/tests/testdata/test/uncaught_errors.out | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/testdata/test') diff --git a/cli/tests/testdata/test/no_check.out b/cli/tests/testdata/test/no_check.out index adef03aee..66ad07e26 100644 --- a/cli/tests/testdata/test/no_check.out +++ b/cli/tests/testdata/test/no_check.out @@ -3,10 +3,10 @@ Uncaught error from ./test/no_check.ts FAILED ERRORS ./test/no_check.ts (uncaught error) -error: TypeError: Cannot read properties of undefined (reading 'fn') +error: (in promise) TypeError: Cannot read properties of undefined (reading 'fn') Deno.test(); ^ - at [WILDCARD]/test/no_check.ts:1:6 + at [WILDCARD] This error was not caught from a test and caused the test runner to fail on the referenced module. It most likely originated from a dangling promise, event/timeout handler or top-level code. diff --git a/cli/tests/testdata/test/uncaught_errors.out b/cli/tests/testdata/test/uncaught_errors.out index 2eae72e21..a52f95d57 100644 --- a/cli/tests/testdata/test/uncaught_errors.out +++ b/cli/tests/testdata/test/uncaught_errors.out @@ -39,7 +39,7 @@ error: Error: bar 3 message at [WILDCARD]/test/uncaught_errors_2.ts:7:9 ./test/uncaught_errors_3.ts (uncaught error) -error: Error: baz +error: (in promise) Error: baz throw new Error("baz"); ^ at [WILDCARD]/test/uncaught_errors_3.ts:1:7 -- cgit v1.2.3