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