blob: 87de84b514cc5c673053cd65e0100fa3d7be1e00 [file] [log] [blame]
function foo(a, b, c) {
return a + b * 2 + c * 3;
}
noInline(foo);
function baz(args) {
return foo.apply(this, args);
}
noInline(baz);
for (var i = 0; i < 10000; ++i) {
var result = baz([5, 6, 7]);
if (result != 5 + 6 * 2 + 7 * 3)
throw "Error: bad result: " + result;
}