]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/get-argument-by-val-in-inlined-varargs-call-out-of-bounds.js
7 function bar(array
, i
) {
9 return foo
.apply(this, array
);
15 for (var i
= 0; i
< 50; ++i
)
18 for (var i
= 0; i
< 10000; ++i
) {
20 var result
= bar(bigArray
, mi
);
22 throw "Bad result in first loop: " + result
+ "; expected: " + 42;
25 for (var i
= 0; i
< 10000; ++i
) {
27 var result
= bar([42], mi
);
28 var expected
= mi
? void 0 : 42;
29 if (result
!== expected
)
30 throw "Bad result in second loop: " + result
+ "; expected: " + expected
;