summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1572391.js
blob: 816173a15450ed45a8bc4e48077ad2eb14d87046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
g = newGlobal({ newCompartment: true });
dbg = Debugger(g);
dbg.onDebuggerStatement = function(frame) {
  frame.older
}

g.eval(`
  function* countdown(recur) {
    if (recur)
      yield* countdown(false);
    debugger;
  }
`);

g.countdown(true).next()