blob: 4e6ba6f387f815b9fc434d2a002c6a728d3113f3 [file] [log] [blame]
description(
"This test checks whether arguments crashes when passed a bad index."
);
function indexArguments(index)
{
return arguments[index];
}
shouldBe('indexArguments(1, "a")', '"a"');
shouldBe('indexArguments("1 ", "a")', 'undefined');
shouldBe('indexArguments(0xDEADBEEF)', 'undefined');
shouldBe('indexArguments(0xFFFFFFFF)', 'undefined');