blob: 8f05ff5a3a672417b109e93e3760ea1a254bfa02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function s(f) { this._m = f; }
function C() {
Object.defineProperty(this, "m", {set: s});
this.m = function () {};
}
var last = {};
for (var i = 0; i < 20; i++) {
var a = new C;
assertEq(a._m === last._m, false);
last = a;
}
|