tor-browser

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

Debugger-findScripts-22.js (304B)


      1 // Bug 1239813: Don't let compartments get GC'd while findScripts is holding
      2 // them in its ScriptQuery's hash set.
      3 
      4 var g = newGlobal({newCompartment: true});
      5 var dbg = new Debugger();
      6 dbg.addDebuggee(g);
      7 g = newGlobal({sameZoneAs: g.Math});
      8 dbg.findScripts({get source() { gc(); return undefined; }});