mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
With the command: ``` git node wpt html/webappapis/microtask-queuing ``` PR-URL: https://github.com/nodejs/node/pull/25616 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host>
16 lines
317 B
JavaScript
16 lines
317 B
JavaScript
// META: global=window,worker
|
|
"use strict";
|
|
|
|
setup({
|
|
allow_uncaught_exception: true
|
|
});
|
|
|
|
async_test(t => {
|
|
const error = new Error("boo");
|
|
self.addEventListener("error", t.step_func_done(ev => {
|
|
assert_equals(ev.error, error);
|
|
}));
|
|
|
|
queueMicrotask(() => { throw error; });
|
|
}, "It rethrows exceptions");
|