]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/poly-chain-getter.js
3 Cons
.prototype.__defineGetter__("f", function() {
16 function test(o
, expected
, expectedCount
) {
18 if (result
!= expected
)
19 throw new Error("Bad result: " + result
);
20 if (counter
!= expectedCount
)
21 throw new Error("Bad counter value: " + counter
);
24 for (var i
= 0; i
< 100000; ++i
) {
25 test(new Cons(), 84, counter
+ 1);
29 test(o
, 84, counter
+ 1);