tor-browser

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

bug1137616.js (341B)


      1 // Accessing a name that isn't a global property is a ReferenceError,
      2 // even if a proxy is on the global's prototype chain.
      3 load(libdir + "asserts.js");
      4 load(libdir + "immutable-prototype.js");
      5 
      6 var g = newGlobal();
      7 if (globalPrototypeChainIsMutable())
      8  g.__proto__ = {};
      9 assertThrowsInstanceOf(() => g.eval("s += ''"), g.ReferenceError);