summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/flat-closure-5.js
blob: f9bd10ae0a7e0e8c28c25a563cd0b28a0360ddc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
actual = '';
expected = 'undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],';

function f() {
for (var q = 0; q < 10; ++q) {
    for each(let b in [(void 0), {}]) {
	(function() {
	    for (var i = 0; i < 1; ++i) {
	      appendToActual('' + b)
	    }
        }())
    }
}
}

f()


assertEq(actual, expected)