Changing [[Prototype]]

Andreas Rossberg rossberg at google.com
Fri Dec 28 05:34:18 PST 2012


On 28 December 2012 13:34, Herby Vojčík <herby at mailbox.sk> wrote:

>  Andreas Rossberg wrote:
>
>> That's a good point, actually. I, for one, do not understand the
>> criteria by which we chose to include __proto__ but not __defineGetter__
>> and friends.
>>
>
> __defineGetter__ and friends have sane alternative, mutable __proto__
> hasn't?
>

The argument for including __proto__ has been existing practice, and AFAICS
that applies to the others no less. The alternatives to __proto__ are
Object.create and Object.getPrototypeOf, which arguably cover the "sane"
use cases.

/Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121228/6c62fd54/attachment-0001.html>


More information about the es-discuss mailing list