]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/float32array-out-of-bounds.js
2 var result
= new Float32Array(1);
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 Float32Array
.prototype[1] = 23;
27 result
= foo(make(42), 1);
29 throw "Error: bad result: " + result
;