summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1817933.js
blob: 4d7813f31495be04d6576c764960889f8a908817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var g = newGlobal({"newCompartment": true});
const dbg = new g.Debugger(this);

with ({x: 3}) {
  function foo(n) {
    () => {n}

    if (n < 20) {
      foo(n+1);
    } else {
      dbg.getNewestFrame().eval("var x = 23;");
    }
    +x
  }
  foo(0);
}