summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug590006.js
blob: 233aeb29283df1a9c9f7fef940f8ee45480f8ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f() {
    var ret;
    for (var i = 0; i < 10; ++i) {
        {
            let local = 3;
            ret = function() { print(local++); }
        }
    }
    return ret;
}
f()();  // test.js:5: ReferenceError: local is not defined