On Mon, Jan 21, 2013 at 6:04 AM, David Bruant <[email protected]> wrote:

> [...] WeakMap.prototype.clear questions the property that was true before
> its adoption ("you can only modify a weakmap entry if you have the key")
>

David, would you please elaborate your argument for this invariant? This
the first I've seen it stated.

An invariant can be a powerful thing. Still, I guess my default position is
that (1) the object-capabilities perspective is only one view among many;
(2) even looking at things with an eye for o-c integrity and security,
clearing a data structure seems like a reasonable thing to allow, treating
a reference to the data structure itself as a sufficient capability. It's
(2) that I would especially like you to address.

Cheers,
-j
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to