blob: d7c070c0c5432771541587d7dabb56b18f9132c3 [file] [log] [blame] [edit]
function foo(array) {
return [array.pop(), array.pop(), array.pop(), array.pop()];
}
noInline(foo);
for (var i = 0; i < testLoopCount; ++i) {
var result = foo(["foo", "bar", "baz"]);
if (result.toString() != "baz,bar,foo,")
throw "Error: bad result: " + result;
}