tor-browser

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

bug-1260728.js (354B)


      1 // |jit-test| error:Error
      2 
      3 var g = newGlobal();
      4 var dbg = new Debugger(g);
      5 dbg.onNewScript = function(script) {
      6  fscript = script.getChildScripts()[0];
      7 }
      8 g.eval("function f(x) { arguments[0] = 3; return x }");
      9 fscript.setBreakpoint(0, {hit:function(frame) {
     10  assertEq(frame.eval("assertEq(arguments, undefined)").return, 1);
     11 }});
     12 assertEq(g.f(1), 42);