blob: 09c87953b8d320b4b4dad3f9f099b697f31cbd72 [file] [log] [blame]
function foo(o_) {
var o = o_;
var result = 0;
for (var s in o) {
result += o[s];
o = {0:1, 1:2, a:3, b:4};
}
return result;
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo({0:0, 1:1, a:2, b:3});
if (result != 9)
throw "Error: bad result: " + result;
}