blob: 683948a6efc09c799ba4cc327d925ce0d30de7fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Setting onPop handlers from a 'debugger' statement handler works.
var g = newGlobal();
var dbg = new Debugger(g);
var log;
dbg.onDebuggerStatement = function handleDebugger(frame) {
assertEq(frame.type, "eval");
log += 'd';
frame.onPop = function handlePop(c) {
log += ')';
};
};
log = '';
g.eval('debugger;');
assertEq(log, 'd)');
|