summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/Worker-replace-self.any.js
blob: 513fd4a257f4d15b5ceff4c1add5b4c3f3902bc6 (plain)
1
2
3
4
5
6
7
8
9
// 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.');