blob: f604a74ed7588e24c9e9a7bb054db1ac3713f5e1 [file] [log] [blame]
function foo(a, b, c) {
return a + b * 2 + c * 3;
}
noInline(foo);
function baz() {
return foo.apply(this, arguments);
}
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;
}