]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/new-array-with-size-with-bad-time.js
8 Array
.prototype.__defineSetter__("1", function() {
13 var result
= foo(size
);
14 if (result
.length
!= size
)
15 throw "Error: bad result: " + result
;
16 var sawThings
= false;
17 for (var s
in result
) {
22 throw "Error: array is in bad state: " + result
;
24 if (result
[0] != "42.5")
25 throw "Error: array is in wierd state: " + result
;
29 throw "Error: setter not called.";
32 for (var i
= 0; i
< 100000; ++i
) {