]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/int32-out-of-bounds.js
8 var result
= foo([value
], 0);
10 throw "Error: bad result: " + result
;
13 for (var i
= 0; i
< 100000; ++i
)
16 var result
= foo([42], 1);
17 if (result
!== void 0)
18 throw "Error: bad result: " + result
;
20 result
= foo([42], 100);
21 if (result
!== void 0)
22 throw "Error: bad result: " + result
;
24 result
= foo([42], 10000);
25 if (result
!== void 0)
26 throw "Error: bad result: " + result
;
28 Array
.prototype[10000] = 23;
29 result
= foo([42], 10000);
31 throw "Error: bad result: " + result
;