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