]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/int32-object-out-of-bounds.js
13 function test(value
) {
14 var result
= foo(make(value
), 0);
16 throw "Error: bad result: " + result
;
19 for (var i
= 0; i
< 100000; ++i
)
22 var result
= foo(make(42), 1);
23 if (result
!== void 0)
24 throw "Error: bad result: " + result
;
26 result
= foo(make(42), 100);
27 if (result
!== void 0)
28 throw "Error: bad result: " + result
;
30 result
= foo(make(42), 10000);
31 if (result
!== void 0)
32 throw "Error: bad result: " + result
;
34 Object
.prototype[10000] = 23;
35 result
= foo(make(42), 10000);
37 throw "Error: bad result: " + result
;