Worker-replace-self.any.js (274B)
1 // META: global=worker 2 test(() => { 3 try { 4 self = 'PASS'; 5 assert_true(self instanceof WorkerGlobalScope); 6 } catch (ex) { 7 assert_unreached("FAIL: unexpected exception (" + ex + ") received while replacing self."); 8 } 9 }, 'Test that self is not replaceable.');