]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/poly-self-then-getter.js
24310ac9cf3e2356486a185c49193c695d80fbd1
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
) {
18 test({f: 42}, 42, counter
);
21 o
.__defineGetter__("f", function() {
25 test(o
, 84, counter
+ 1);