tor-browser

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

Source-invisible.js (357B)


      1 // Looking at ScriptSourceObjects in invisible-to-debugger compartments is okay.
      2 
      3 var gi = newGlobal({ newCompartment: true, invisibleToDebugger: true });
      4 
      5 var gv = newGlobal({newCompartment: true});
      6 gi.evaluate('function f() {}', {global: gv});
      7 
      8 var dbg = new Debugger;
      9 var gvw = dbg.addDebuggee(gv);
     10 gvw.getOwnPropertyDescriptor('f').value.script.source;