Should __proto__ be an accessor property of Object.prototype?

Nathan Wall nathan.wall at live.com
Fri Jun 21 21:11:41 PDT 2013


See this thread:
https://mail.mozilla.org/pipermail/es-discuss/2013-May/030551.html


On Fri, Jun 21, 2013 at 11:34 PM, BelleveInvis <infinte.cdda at hotmail.com>wrote:

> 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
> }
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130622/71c98253/attachment.html>


More information about the es-discuss mailing list