summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1788528-4.js
blob: 67ab57e4334a0505b1e7cad804a5e055c396e633 (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;
    }
    g();
}
for (var i = 0; i < 20; i++) {
    f(i);
}