mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Automatic update from web-platform-tests Upstream fast/workers to external/wpt/workers: first batch. Bug: 795636 Change-Id: Ifbeaf7eab76b992ac41a4dc7f23ec46f72ad8ca2 Reviewed-on: https://chromium-review.googlesource.com/c/1412827 Commit-Queue: Katie Dillon <kdillon@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#625734} -- Add a dedicated test for uncaught errors (not) propagating from shared workers -- wpt-commits: 613de7dfc410afb676453d73f27a0103f98f7614, 4139dfe3c5ad9c43f4286a549d9a480699ef719e wpt-pr: 14877
9 lines
283 B
JavaScript
9 lines
283 B
JavaScript
// META: global=!default,worker
|
|
test(() => {
|
|
try {
|
|
self = 'PASS';
|
|
assert_true(self instanceof WorkerGlobalScope);
|
|
} catch (ex) {
|
|
assert_unreached("FAIL: unexpected exception (" + ex + ") received while replacing self.");
|
|
}
|
|
}, 'Test that self is not replaceable.');
|