]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/poly-self-getter.js
9 function test(o
, expected
, expectedCount
) {
11 if (result
!= expected
)
12 throw new Error("Bad result: " + result
);
13 if (counter
!= expectedCount
)
14 throw new Error("Bad counter value: " + counter
);
22 for (var i
= 0; i
< 100000; ++i
) {
24 o
.__defineGetter__("f", getter
);
25 test(o
, 84, counter
+ 1);
28 o
.__defineGetter__("f", getter
);
30 test(o
, 84, counter
+ 1);