mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
97954003cc
Adds error event dispatching for queueMicrotask(). Consequently unhandled errors are now reported with Deno.core.terminate(), which is immune to the existing quirk with plainly thrown errors (#14158).
5 lines
115 B
TypeScript
5 lines
115 B
TypeScript
queueMicrotask(() => {
|
|
throw new Error("foo");
|
|
});
|
|
console.log(1);
|
|
Promise.resolve().then(() => console.log(2));
|