summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1148917.js
blob: 2645f913f32bb56f4d9b56beaaeba1d450a97d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error: Error

var g = newGlobal();
g.eval('function f(a) { evaluate("f(" + " - 1);", {newContext: true}); }');
var dbg = new Debugger(g);
var frames = [];
dbg.onEnterFrame = function (frame) {
  if (frames.length == 3)
    return;
  frames.push(frame);
  for (var f of frames)
    f.eval('a').return
};
g.f();