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

for (var a = 0; a < 2; ++a) {
    for (var b = 0; b < 3; ++b) {
        (function (x) {
            (function () {
                for (var c = 0; c < 1; ++c) {
                    appendToActual(x);
                }
            })();
        })(b);
    }
}


assertEq(actual, expected)