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

// bug 496987

for each(let a in ["", "", true, "", true, "", true]) {
    appendToActual((function() {
        for (var e in [0]) {
            appendToActual( + a)
        }
    })())
}

appendToActual('nocrash')


assertEq(actual, expected)