summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1788528-3.js
blob: 52414669d496e71d6f86720e6b6cfaf0567150e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error:ReferenceError: can't access lexical declaration
function f(i) {
    if (i === 19) {
        g();
    }
    let val = 0;
    function g() {
        eval("");
        val += 1;
    }
    g();
}
for (var i = 0; i < 20; i++) {
    f(i);
}