1// META: global=window,worker 2"use strict"; 3 4setup({ 5 allow_uncaught_exception: true 6}); 7 8async_test(t => { 9 const error = new Error("boo"); 10 self.addEventListener("error", t.step_func_done(ev => { 11 assert_equals(ev.error, error); 12 })); 13 14 queueMicrotask(() => { throw error; }); 15}, "It rethrows exceptions"); 16