Source code
Revision control
Copy as Markdown
Other Tools
// A global garbage collection does not disturb onPop handlers.
var g = newGlobal({newCompartment: true});
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, '()');