michael@0: // Upon returning to a frame with an onStep hook, the hook is called before the michael@0: // next line. michael@0: michael@0: var g = newGlobal(); michael@0: g.log = ''; michael@0: g.eval("function f() { debugger; }"); michael@0: michael@0: var dbg = Debugger(g); michael@0: dbg.onDebuggerStatement = function (frame) { michael@0: frame.older.onStep = function () { g.log += 's'; }; michael@0: }; michael@0: g.eval("f();\n" + michael@0: "log += 'x';\n"); michael@0: assertEq(g.log.charAt(0), 's');