9 lines
274 B
JavaScript
9 lines
274 B
JavaScript
// 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.');
|