tor-browser

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

Environment-setVariable-16.js (397B)


      1 (function () {
      2    const otherDebugger = newGlobal({ sameZoneAs: this }).Debugger;
      3    const dbg = otherDebugger(this);
      4 
      5    const env = dbg.getNewestFrame().callee.environment;
      6    var ran = false;
      7    try {
      8        env.setVariable("tdz_variable", 10);
      9        ran = true;
     10    } catch (e) { }
     11    assertEq(ran, false);
     12 })();
     13 
     14 // We shouldn't crash when initializing this.
     15 let tdz_variable = 10;