summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/name-inactive-eval-del.js
blob: 593ab39ffeb8b420940b40fffe62b5ae62988fc2 (plain)
1
2
3
4
5
6
7
8
9
10
function mp(g) {
  ans = ''
  for (var i = 0; i < 5; ++i) {
    ans += g();
  }
  return ans;
}

var f = eval("(function() { var k = 5; function g() { return k; } k = 6; mp(g); delete k; return mp(g); })");
assertEq(f(), "66666");