summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/name-inactive-missing.js
blob: a0f68486a7076c3eadccd2e0459e35f47874746d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error: ReferenceError

function f(k) {
  function g(j) {
    return j + q;
  }
  return g;
}

g = f(10);
var ans = '';
for (var i = 0; i < 5; ++i) {
  ans += g(i) + ',';
}