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