tor-browser

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

makeGlobalObjectReference-03.js (298B)


      1 // Debugger.prototype.makeGlobalObjectReference should not accept invisible-to-debugger globals.
      2 load(libdir + 'asserts.js');
      3 
      4 var g = newGlobal({ newCompartment: true, invisibleToDebugger: true });
      5 
      6 assertThrowsInstanceOf(function () {
      7  (new Debugger).makeGlobalObjectReference(g)
      8 }, TypeError);