]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/multi-get-by-offset-dce.js
8 var array
= [{f:1}, {g:1, f:2}];
9 for (var i
= 0; i
< 10000; ++i
) {
10 var result
= foo(array
[i
% array
.length
]);
12 throw "Error: bad result in loop: " + result
;
16 var didCallGetter
= false;
17 o
.__defineGetter__("f", function() { didCallGetter
= true; return 73; });
20 throw "Error: bad result at end: " + result
;
22 throw "Error: did not call getter at end.";