Lecture series on SES and capability-based security by Mark Miller

Brendan Eich brendan at mozilla.com
Fri Nov 4 14:49:37 PDT 2011

On Nov 4, 2011, at 2:40 PM, Allen Wirfs-Brock wrote:

> On Nov 4, 2011, at 2:33 PM, Brendan Eich wrote:
>> ...
>> If you could redefine [] as an operator on all objects, perhaps that would help. Or hurt. Both, probably. That isn't what Allen proposes, though. It would have to be universal AFAICT. Thoughts?
> Actually, that sounds pretty much what I proposed.  My proposal was that [ ] (actually RHS and LHS independently) would invoke a method using a well known property name if it was present on the object to the left of the [ ].  If the property was not present (own or inherited) then it would fall back to current behavior.

So Object.prototype customization would cover all cases? Except Proxies, of course -- and host objects.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111104/0a0fbd03/attachment.html>

More information about the es-discuss mailing list