]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/float32-array-out-of-bounds.js
7 var shortArray
= new Float32Array(10);
8 var longArray
= new Float32Array(100);
10 function test(array
, expected
) {
11 var result
= foo(array
);
12 if (result
!= expected
)
13 throw new Error("bad result: " + result
);
16 for (var i
= 0; i
< 1000; ++i
)
17 test(shortArray
, void 0);
19 for (var i
= 0; i
< 100000; ++i
)
22 test(shortArray
, void 0);