blob: 3322ea7d27a9be936d55598489736e2abaff644a [file] [log] [blame]
function foo(array, num, denum)
{
array.push(num/denum);
}
function bar()
{
return [];
}
noInline(foo);
noInline(bar);
for (var i = 0; i < 10000; ++i)
foo(bar(), 42.5, 3.1);
var result = bar();
foo(result, 0, 0);
if ("" + result[0] !== "NaN")
throw "Bad result: " + result;