blob: 4d5bab9e1ad892233716cd85ea6eda0625db1297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
let g = newGlobal({newCompartment: true});
g.eval('function* f() { yield 123; }');
let dbg = Debugger(g);
let genObj = g.f();
dbg.onEnterFrame = frame => {
frame.onStep = () => {};
dbg.removeDebuggee(g);
dbg.addDebuggee(g);
};
genObj.return();
|