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