1 2 3 4 5 6 7 8 9 10 11
var actual = ''; var a = [0, 1]; a.x = 10; delete a.x; for (var i in a) { appendToActual(i); a.pop(); } assertEq(actual, "0,");