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()