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

v = 0
{ let f = function (y) {
    { let f = function (g) {
        for each(let h in g) {
            if (++y > 2) {
                appendToActual(h)
            }
        }
    };
        f([(--y), false, true, (--y), false, (--y)])
    }
};
    f(v)
}


assertEq(actual, expected)