michael@0: // vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: function f(a) { michael@0: var x = { michael@0: g: function () { michael@0: return this.a; michael@0: } michael@0: }; michael@0: x.g.prototype.a = a; michael@0: assertEq(x.g.prototype.a, a); michael@0: return x; michael@0: } michael@0: f(1); michael@0: f(2); michael@0: f(3);