tor-browser

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

Frame-eval-28.js (270B)


      1 // Test that strict Debugger.Frame.eval has a correct static scope.
      2 "use strict";
      3 var g = newGlobal({newCompartment: true});
      4 var dbg = new Debugger(g);
      5 var hits = 0;
      6 dbg.onEnterFrame = function(f) {
      7  hits++;
      8  if (hits > 2)
      9    return;
     10  f.eval("42");
     11 };
     12 g.eval("42");