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/npm/cjs_require_esm_error/main.out | 2 +- cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out | 2 +- cli/tests/testdata/npm/cjs_this_in_exports/main.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/testdata/npm') diff --git a/cli/tests/testdata/npm/cjs_require_esm_error/main.out b/cli/tests/testdata/npm/cjs_require_esm_error/main.out index 5c735b3a6..f24675de9 100644 --- a/cli/tests/testdata/npm/cjs_require_esm_error/main.out +++ b/cli/tests/testdata/npm/cjs_require_esm_error/main.out @@ -1,2 +1,2 @@ -error: Uncaught Error: require() of ES Module [WILDCARD]my_esm_module.js from [WILDCARD]index.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. +error: Uncaught (in promise) Error: require() of ES Module [WILDCARD]my_esm_module.js from [WILDCARD]index.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. [WILDCARD] diff --git a/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out b/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out index e6a8abe27..e779cfaf8 100644 --- a/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out +++ b/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out @@ -1,2 +1,2 @@ -error: Uncaught Error: require() of ES Module [WILDCARD]esm_mjs.mjs from [WILDCARD]require_mjs.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. +error: Uncaught (in promise) Error: require() of ES Module [WILDCARD]esm_mjs.mjs from [WILDCARD]require_mjs.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. [WILDCARD] diff --git a/cli/tests/testdata/npm/cjs_this_in_exports/main.out b/cli/tests/testdata/npm/cjs_this_in_exports/main.out index 653a62335..ba436bddc 100644 --- a/cli/tests/testdata/npm/cjs_this_in_exports/main.out +++ b/cli/tests/testdata/npm/cjs_this_in_exports/main.out @@ -1,5 +1,5 @@ 1 1 -error: Uncaught TypeError: this.otherMethod is not a function +error: Uncaught (in promise) TypeError: this.otherMethod is not a function at getValue (file://[WILDCARD]/@denotest/cjs-this-in-exports/1.0.0/index.js:3:17) at file://[WILDCARD]/testdata/npm/cjs_this_in_exports/main.js:11:1 -- cgit v1.2.3