summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1118878.js
blob: 26dcc68382e040455675fdd999596c96990b7abd (plain)
1
2
3
4
5
6
7
8
9
10
11
var evalInFrame = (function (global) {
  var dbgGlobal = newGlobal({newCompartment: true});
  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 });