summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/t019.js
blob: bbd0ade7c3bb48f0f05c8ed5987bc3948a5b95d3 (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,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,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, 3, 5.5, {}]) {
        appendToActual((function() {
            for (let y = 0; y < 1; ++y) {
                '' + a
            }
        })())
    }
}



assertEq(actual, expected)