summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1147907.js
blob: 4d34f5999090cb7b371e83e46d4eda9b1e978758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var evalInFrame = (function (global) {
  var dbgGlobal = newGlobal();
  var dbg = new dbgGlobal.Debugger();
  return function evalInFrame(upCount, code) {
    dbg.addDebuggee(global);
    var frame = dbg.getNewestFrame().older;
    var completion = frame.eval(code);
  };
})(this);
var x = 5;
{
  let x = eval("this.x++");
  evalInFrame(0, ("for (var x = 0; x < 3; ++x) { (function(){})() } "))
}