summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-onPop-20.js
blob: 2702c480480b46143d8598c7e1a8e675ea700f6d (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({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, '()');