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

v = 0
{
let f = function() {
    for (let x = 0; x < 4; ++x) {
        v >> x;
        (function() {
            for (let y = 0; y < 2; ++y) {
                appendToActual(x)
            }
        })()
    }
};
(function() {})()
    f(v)
}


assertEq(actual, expected)