blob: 5da104e32bd30756a197ba7dd26b2fef20cd93c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// A global garbage collection 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(); 42;'), 42);
assertEq(log, '()');
|