blob: fae18adff7b2e1591c97ab4c5c3d031ce34a0af7 (
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({newCompartment: true});
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.onStack, false);
assertEq(hits, 1);
|