blob: b4996ab2173feb5366ca43db4144ca590f446795 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// GC'ing a Debugger.Frame and its AbstractGeneratorObject adjusts the script's
// stepper count.
let g = newGlobal({newCompartment: true});
g.eval(`function* f() {}`);
for (let i = 0; i < 2; i++) {
let dbg = new Debugger(g);
dbg.onEnterFrame = frame => {
frame.onStep = () => {};
};
g.f();
dbg.onEnterFrame = undefined;
gc();
}
|