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