Should __proto__ be an accessor property of Object.prototype?

Rick Waldron waldron.rick at gmail.com
Sat Jun 22 10:15:57 PDT 2013


On Saturday, June 22, 2013, Nathan Wall wrote:

> See this thread:
> https://mail.mozilla.org/pipermail/es-discuss/2013-May/030551.html
>
>
Further resolution here:
https://github.com/rwldrn/tc39-notes/blob/master/es6/2013-05/may-21.md

I'm on my mobile and the fragment URL doesn't seem to work? Look for 4.18

Rick


>
> 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
>>
>>
> Also,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130622/92be4177/attachment.html>


More information about the es-discuss mailing list