michael@0: michael@0: function s(f) { this._m = f; } michael@0: function C() { michael@0: Object.defineProperty(this, "m", {set: s}); michael@0: this.m = function () {}; michael@0: } michael@0: var last = {}; michael@0: for (var i = 0; i < 20; i++) { michael@0: var a = new C; michael@0: assertEq(a._m === last._m, false); michael@0: last = a; michael@0: }