blob: 2d745a9100f015b9dff26de3f9ff47832f81676f [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(a, b, c) {
return a + b + c;
}
var bound = test.bind(0, 1);
function t() {
return bound(2, 3, 4);
}
noInline(t);
for (var i = 0; i < testLoopCount; ++i)
shouldBe(t(), 6);