]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/getter.js
2 return o
.f
+ o
.k
* 1000;
7 for (var i
= 0; i
< 100; ++i
) {
9 o
.__defineGetter__("f", function() { return 42 + this.g_
; });
10 o
.__defineGetter__("g", function() { return 43 + this.g_
; });
11 o
.__defineGetter__("h", function() { return 44 + this.g_
; });
12 o
.__defineGetter__("i", function() { return 45 + this.g_
; });
13 o
.__defineGetter__("j", function() { return 46 + this.g_
; });
14 o
.__defineGetter__("k", function() { return 47 + this.g_
; });
16 if (result
!= (42 + 5) + 1000 * (47 + 5))
17 throw "Error: bad result: " + result
;