blob: 11e881ae33474a2332754ff887932b87dc85d288 [file] [log] [blame]
"use strict";
function assert(b) {
if (!b)
throw new Error("Bad");
}
function foo(...args) {
return bar(args);
}
noInline(foo);
function bar(args) {
return baz(...args);
}
function baz(a, b) {
return a + b;
}
for (let i = 0; i < 10000; ++i)
assert(foo(i, i+1) === (i + (i + 1)));