summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1621268-1.js
blob: 940b35869679d5c638405368f33353222b45ed7c (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| error:ReferenceError: can't access lexical declaration
function f() {
    for (let x of [1]) {
        let y = new Date(x);
        `Cannot parse "${x}"`;
        let x;
    }
}
f();