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