summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug510437-2.js
blob: 1fca2067f008fbaba77a99d38f0270bd5d0d7d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function f() {
  eval("g=function() { \
          for (let x=0; x < 2; ++x) { \
            d=x \
          } \
        }")
  g();
  eval("var d")
  g();
}

f();
assertEq(d, 1);