blob: 2dac7d291f5295f3a01dccf3fd2bfad64536f98c [file] [log] [blame]
function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function args()
{
return arguments[1];
}
noInline(args);
for (var i = 0; i < 1e6; ++i)
shouldBe(args(0, 1, 2), 1);
for (var i = 0; i < 1e6; ++i)
shouldBe(args(0), undefined);