Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/Worker-replace-self.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /workers/Worker-replace-self.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /workers/Worker-replace-self.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=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.');