blob: 510bc5348473c625f38671bc1eacbe769cc25a5d [file] [log] [blame]
function foo(array, otherArray, i)
{
var x = otherArray[i];
var y = otherArray[i];
array.push(y);
return x / 42;
}
function bar()
{
return [];
}
noInline(foo);
noInline(bar);
for (var i = 0; i < 10000; ++i)
foo(bar(), [42.5], 0);
var result = bar();
foo(result, [,42.5], 0);
if (result[0] !== void 0)
throw "Bad result: " + result;