var F = function that () { var self = this; F = function () { return self} that.prototype.constructor = F; F.prototype = that.prototype; } var a = new F(); var b = new F(); alert(a === b)