1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
actual = '';
expected = ',,,,,[object Object],[object Object],[object Object],[object Object],[object Object],,,,,,[object Object],[object Object],[object Object],[object Object],[object Object],,,,,,[object Object],[object Object],[object Object],[object Object],[object Object],,,,,,[object Object],[object Object],[object Object],[object Object],[object Object],,,,,,';
function f() {
var e;
for each (e in ["", {}, "", {}, "", {}, "", {}, ""]) {
var g = function() { for (var i = 0; i < 5; ++i) appendToActual(e); }
g();
}
}
f();
assertEq(actual, expected)
|