summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onDebuggerStatement-01.js
blob: 524072072dc8ff4c02998c8f81d05660d2ec1ef4 (plain)
1
2
3
4
5
6
7
var g = newGlobal();
g.log = '';

var dbg = Debugger(g);
dbg.onDebuggerStatement = function (stack) { g.log += '!'; };
assertEq(g.eval("log += '1'; debugger; log += '2'; 3;"), 3);
assertEq(g.log, '1!2');