Should __proto__ be an accessor property of Object.prototype?

BelleveInvis infinte.cdda at
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
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: <>

More information about the es-discuss mailing list