summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/flat-closure-2.js
blob: ae1043097e3cd9a63fe4195c7d5065913e26a3b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
actual = '';
expected = 'nocrash,';

let z = {};
for (var i = 0; i < 4; ++i) {
    for each (var e in [{}, 1, {}]) {
        +(function () z)();
    }
}

appendToActual('nocrash')


assertEq(actual, expected)