blob: 0df4154d665a151882427963d24b3c8554e21296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// A garbage collection in the debuggee compartment does not disturb onPop
// handlers.
var g = newGlobal();
var dbg = new Debugger(g);
var log;
dbg.onEnterFrame = function handleEnter(frame) {
log += '(';
frame.onPop = function handlePop(completion) {
log += ')';
};
};
log = '';
assertEq(g.eval('gc(this); 42;'), 42);
assertEq(log, '()');
|