]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/fold-load-varargs-arity-check-fail-barely.js
6 return foo
.apply(this, arguments
);
15 for (var i
= 0; i
< 10000; ++i
) {
17 if (!(result
instanceof Array
))
18 throw "Error: result is not an array.";
19 if (result
.length
!= 2)
20 throw "Error: result doesn't have length 4.";
22 throw "Error: first element is not 42: " + result
[0];
23 for (var j
= 1; j
< 2; ++j
) {
24 if (result
[j
] !== void 0)
25 throw "Error: element " + j
+ " is not undefined: " + result
[j
];