tor-browser

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

Environment-setVariable-17.js (420B)


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