blob: 9fcda77e37c5ff676f8f971e994764b86ecc746a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function doTestMoreArgcThanNargs()
{
var x = 0;
for (var i = 0; i < 10; i++)
{
x = x + arguments[3];
}
return x;
}
function testMoreArgcThanNargs()
{
return doTestMoreArgcThanNargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
}
assertEq(testMoreArgcThanNargs(), 4*10);
|