summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1118878.js
blob: 91e6e8cb9a80cdd3545f9a526a628672931194ae (plain)
1
2
3
4
5
6
7
8
9
10
11

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);
evaluate("for (var k in 'xxx') (function g() { Math.atan2(42); evalInFrame((0), (''), true); })();", { noScriptRval : true, isRunOnce : true });