__proto__ security

Allen Wirfs-Brock allen at wirfs-brock.com
Sun Jan 29 11:36:59 PST 2012

On Jan 29, 2012, at 12:40 AM, Gavin Barraclough wrote:

> On Jan 28, 2012, at 3:58 PM, Allen Wirfs-Brock wrote:
>> Since most implementations already seem to have special mechanism for giving "magic" behavior to certain properties I would expect them to use some of those mechanisms here.
> No - in JSC I'm pretty sure it's going to be faster and cleaner to implement this as a regular accessor property.
> Now, it would certainly be possible to add a mechanism to allow this accessor to masquerade itself as a data property, but it just seems too magical and unnecessarily weird to do so.  It behaves like an accessor, so it should look like one.

Other standard properties that have accessor like characteristics but look like data properties:

array element properties
array length property
string character element properties
argument object elements 
the "caller" property of function objects (see

> cheers,
> G.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120129/6543520a/attachment.html>

More information about the es-discuss mailing list