]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/weird-getter-counter.js
ff9433447b453dd8371ca0feb8625b86dda4a0e2
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
);
17 for (var i
= 0; i
< 100000; ++i
) {
19 o
.__defineGetter__("f", function() {
23 test(o
, 84, counter
+ 1);