blob: 2d7f63576d5eb488db45532d61753cdebb79df4c (
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({newCompartment: true});
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)');
|