tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

self.any.js (365B)


      1 // META: global=worker
      2 
      3 test(function() {
      4  assert_equals(self, self);
      5 }, 'self === self');
      6 
      7 test(function() {
      8  assert_true(self instanceof WorkerGlobalScope);
      9 }, 'self instanceof WorkerGlobalScope');
     10 
     11 test(function() {
     12  assert_true('self' in self);
     13 }, '\'self\' in self');
     14 
     15 test(function() {
     16  var x = self;
     17  self = 1;
     18  assert_equals(self, x);
     19 }, 'self = 1');