Should __proto__ be an accessor property of Object.prototype?

BelleveInvis infinte.cdda at hotmail.com
Fri Jun 21 20:34:08 PDT 2013


The current behaviour of __proto__ looks ugly. The better way might be make __proto__ an unconfigurable accessor of Object.prototype
Pesudocode:
Object.defineProperty(Object.prototype, '__proto__', {  get: function(){ return Object.getPrototype(this) },  set: function(v){ return Object.setProrotype(this, v) },  enumerable: false,  configurable: false} 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130622/503ee577/attachment.html>


More information about the es-discuss mailing list