11 C
.prototype = new B();
15 D
.prototype = new C();
19 E
.prototype = new D();
23 F
.prototype = new E();
27 G
.prototype = new F();
32 for (var i
= 0; i
< 1000; ++i
)
42 for (var i
= 0; i
< 1000; ++i
)
43 result
+= foo(new G());
45 if (result
!= 42000000)
46 throw "Error: bad result: " + result
;