]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/new-array-storage-array-with-size.js
7 // Warm up up to create array storage.
8 for (var i
= 0; i
< 10000; ++i
) {
10 array
.__defineSetter__(0, function(v
) { });
14 var result
= foo(size
);
15 if (result
.length
!= size
)
16 throw "Error: bad result: " + result
;
17 var sawThings
= false;
21 throw "Error: array is in bad state: " + result
;
23 if (result
[0] != "42.5")
24 throw "Error: array is in wierd state: " + result
;
27 for (var i
= 0; i
< 100000; ++i
) {