1
0
Fork 0
firefox/testing/web-platform/tests/html/webappapis/microtask-queuing/queue-microtask-exceptions.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 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");