blob: 4d6e9468a82d7e8ae774a244acf2b80380a333f8 [file] [log] [blame]
"use strict";
(function() {
let o = {
apply(a, b) {
return a + b;
}
};
function foo() {
let result = 0;
for (let i = 0; i < 1000; ++i)
result = o.apply(result, 1);
return result;
}
noInline(foo);
let result = 0;
for (let i = 0; i < 10000; ++i)
result += foo();
if (result != 10000000)
throw new "Bad result: " + result;
})();