blob: d1b3de79e06dd38b868f93d3f05ed5d64d71cbe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Check `.terminated` functionality for normal functions.
const g = newGlobal({ newCompartment: true });
const dbg = new Debugger(g);
g.eval(`
function f(){}
`);
let frame;
dbg.onEnterFrame = function(f) {
frame = f;
assertEq(frame.terminated, false);
};
g.f();
assertEq(frame instanceof Debugger.Frame, true);
assertEq(frame.terminated, true);
|