summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1788528-2.js
blob: 5f3701c3b06c534ec668d7f3c65ed3043022fa31 (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);
}