blob: 9c9cd0995e297e736bf72d667b81d6ee0978528e [file] [log] [blame]
function foo(a, b) {
return a + b;
}
function bar() {
var a = arguments;
var tmp = arguments[0] + 1;
return tmp + foo.apply(null, a);
}
noInline(bar);
for (var i = 0; i < 10000; ++i) {
var result = bar(1, 2);
if (result != 1 + 1 + 3)
throw "Error: bad result: " + result;
}
var result = bar(1.5, 2);
if (result != 1.5 + 1 + 3.5)
throw "Error: bad result at end: " + result;