WeakMap better than Private Symbols? (was: direct_proxies "problem")
Brendan Eich
brendan at mozilla.com
Thu Jan 10 08:41:29 PST 2013
Nathan Wall wrote:
> In the case of (1), the implementation using a private symbol will have internal accesses to the `timestamp` symbol exposed through the unknownPrivateSymbol trap.
Private symbols do not trap.
> In the case of (2), the implementation using a private symbol will fail on a call to `setTime` when the object is frozen (I think).
Nope, we agreed that frozen objects support setting pre-existing (added
before the object was made non-extensible) properties named by private
symbols.
/be
More information about the es-discuss
mailing list