summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/flat-closure-7.js
blob: 5e2a7be3b73a17aed4902f5aa3cfc92e946dcae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
actual = '';
expected = '0 0 0 0 0 0 0 0 0,';

    var o = [];
    for (var a = 0; a < 9; ++a) {
        var unused = 0;
        let zero = 0;
        for (var ee = 0; ee < 1; ++ee) {
          o.push((function () { return zero; })());
        }
    }
    appendToActual(o.join(" "));


assertEq(actual, expected)