mirror of
https://github.com/denoland/deno.git
synced 2025-02-23 05:33:33 -05:00

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.
6 lines
242 B
Text
6 lines
242 B
Text
[WILDCARD]error: Uncaught (in promise) Error: exception from mod1
|
|
throw Error("exception from mod1");
|
|
^
|
|
at throwsError ([WILDCARD]/subdir/mod1.ts:16:9)
|
|
at foo ([WILDCARD]/error_002.ts:4:3)
|
|
at [WILDCARD]/error_002.ts:7:1
|