summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onDebuggerStatement-01.js
blob: bc5b39f94d371818b434e0bf4263ab50b81c6f94 (plain)
1
2
3
4
5
6
7
var g = newGlobal({newCompartment: true});
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');