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

for (x = 0; x < 10; ++x) {
    for each(let a in ['', NaN]) {
        appendToActual((function() {
            for (let y = 0; y < 1; ++y) {
                '' + a
            }
        })())
    }
}



assertEq(actual, expected)