mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +01:00
15 lines
462 B
JavaScript
15 lines
462 B
JavaScript
// META: global=!default,sharedworker
|
|
// https://crbug.com/239669
|
|
const t = async_test("Tests that repeatedly setting 'onerror' within a shared worker doesnt crash.");
|
|
onconnect = t.step_func_done((event) => {
|
|
function update() {
|
|
onerror = undefined;
|
|
}
|
|
try {
|
|
for (var i = 0; i < 8; ++i) {
|
|
update();
|
|
}
|
|
} catch (ex) {
|
|
assert_unreached("FAIL: unexpected exception (" + ex + ") received while updating onerror event handler.");
|
|
}
|
|
});
|