mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
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.');
|