David’s ProxyMap

Axel Rauschmayer axel at rauschma.de
Sat Oct 20 10:51:31 PDT 2012


I’m wondering what this approach does better. Given the 3 objects-as-maps pitfalls [1], we have:

1. Accidentally accessing inherited properties: fixed
2. Can’t safely invoke methods, because those might be overridden: still a problem (right?)
3. __proto__: fixed

[1] http://www.2ality.com/2012/01/objects-as-maps.html

Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121020/31d97bcc/attachment.html>

More information about the es-discuss mailing list