unknownPrivateSymbol trap (was: WeakMap better than Private Symbols? (was: direct_proxies "problem"))

Tom Van Cutsem tomvc.be at gmail.com
Tue Jan 15 12:59:17 PST 2013


2013/1/15 David Bruant <bruant.d at gmail.com>

>  Le 15/01/2013 20:32, Tom Van Cutsem a écrit :
>
> As far as I recall, the purpose of the trap was to allow a membrane or
> revocable proxy to explicitly abort accesses involving such private
> symbols. The point being that if a membrane can't abort such accesses, then
> collaborators on both sides of the membrane could circumvent the membrane
> by communicating via a previously agreed upon private symbol.
>
> Yes, we've discussed that in length with Nathan Wall :-)
>

Sorry, I only now catched up with that. I don't have anything more to add
to that discussion.

So in conclusion:
- we still need unknownPrivateSymbol
- a return/throw protocol may be more suitable than a boolean return value
for this "trap"

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130115/1d3ffd1d/attachment.html>


More information about the es-discuss mailing list