summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/name-inactive.js
blob: 6f3b9c4c0a827cbe99eee42fcd6f3393c2a282de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function f(k) {
  function g(j) {
    return j + k;
  }
  return g;
}

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

assertEq(ans, '10,11,12,13,14,');