mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
9314928990
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.
13 lines
560 B
Text
13 lines
560 B
Text
error: Uncaught (in promise) Error: foo
|
|
throw new Error("foo", { cause: new Error("bar", { cause: "deno" as any }) });
|
|
^
|
|
at a (file:///[WILDCARD]/error_cause.ts:3:9)
|
|
at b (file:///[WILDCARD]/error_cause.ts:7:3)
|
|
at c (file:///[WILDCARD]/error_cause.ts:11:3)
|
|
at file:///[WILDCARD]/error_cause.ts:14:1
|
|
Caused by: Error: bar
|
|
at a (file:///[WILDCARD]/error_cause.ts:3:35)
|
|
at b (file:///[WILDCARD]/error_cause.ts:7:3)
|
|
at c (file:///[WILDCARD]/error_cause.ts:11:3)
|
|
at file:///[WILDCARD]/error_cause.ts:14:1
|
|
Caused by: "deno"
|