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)
|