__proto__ security

Mark S. Miller erights at google.com
Mon Jan 30 07:13:12 PST 2012


-1 to adding yet another attribute to the object model (expanding it 16%)
unless the payoff is huge. Regarding <
http://wiki.ecmascript.org/doku.php?id=strawman:fixing_override_mistake>,
we should simply make a decision one way or another rather than add yet
another knob.

On Mon, Jan 30, 2012 at 3:38 AM, Herby Vojčík <herby at mailbox.sk> wrote:

> Gavin Barraclough wrote:
>
>> I just don't see why we would want to muddy up some core mechanisms
>> of the object model, making them more difficult for users of the
>> language to understand, for the non-benefit of making __proto__
>> appear to be something that it isn't. It just seems like a bad idea
>> wrapped in a bad  idea to me.
>>
>
> One possibility to take the magic away from [[Put]] would be to revisit
> something that appeared while talking about "shared part" discussion on
> non-writable inherited properties. That is, to include fourth attribute,
> shadowable, with default on true; which when false, would mean the
> [[DefineOwnProperty]] trap should be called on containing object, not on
> this.
>
>  cheers,
>> G.
>>
>
> Herby
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120130/22d65da6/attachment.html>


More information about the es-discuss mailing list