How kosher is this?
function X(){
X.prototype.z = function(){
};
}
var obj = new X();
according to simple tests, the z function does get assigned the __proto__
of the obj.
what would break because of this call?
How kosher is this?
function X(){
X.prototype.z = function(){
};
}
var obj = new X();
according to simple tests, the z function does get assigned the __proto__
of the obj.
what would break because of this call?