summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1188334.js
blob: a5c0a77c4317880f29e6f285ef9101303a703ba8 (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();
  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()