michael@0: function A() michael@0: { michael@0: this.a = 77; michael@0: this.b = 88; michael@0: } michael@0: michael@0: function B() michael@0: { michael@0: } michael@0: michael@0: B.prototype = new A; michael@0: michael@0: function C() michael@0: { michael@0: } michael@0: michael@0: C.prototype = new B; michael@0: michael@0: function f() { michael@0: var o = new C; michael@0: var z; michael@0: for (var i = 0; i < 5; ++i) { michael@0: z = o.a; michael@0: assertEq(z, 77); michael@0: } michael@0: } michael@0: michael@0: f();