blob: 546fe71aa6a0604e882569c82700083a1b78869a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
var evalInFrame = (function (global) {
var dbgGlobal = newGlobal({newCompartment: true});
var dbg = new dbgGlobal.Debugger();
return function evalInFrame(upCount, code) {
dbg.addDebuggee(global);
var frame = dbg.getNewestFrame().older;
var completion = frame.eval(code);
};
})(this);
function* f() {
{
let {} = "xxx";
yield evalInFrame(0, "x");
}
}
var gen = f();
gen.next()
|