summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-onEnterFrame-resumption-04.js
blob: 3a30949de30aed8844ae39cda79d9c04b1640edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// If debugger.onEnterFrame returns undefined, the frame should continue execution.

var g = newGlobal();
var dbg = Debugger(g);
var hits = 0;
var savedFrame;
dbg.onEnterFrame = function (frame) {
    hits++;
    savedFrame = frame;
    return undefined;
};

savedFrame = undefined;
assertEq(g.eval("'pass';"), "pass");
assertEq(savedFrame.live, false);
assertEq(hits, 1);