Why not private symbols?

Brandon Benvie bbenvie at mozilla.com
Fri Aug 2 13:07:24 PDT 2013


On 8/2/2013 1:02 PM, Domenic Denicola wrote:
> I know the answer will be obvious when I see it, but I can't quite 
> remember ... why is it important that `O[privateSymbol]` not invoke 
> the proxy?

That would leak the Symbol to the Proxy and then private Symbols 
wouldn't carry a guarantee of security. That's the only difference 
between private Symbols and unique Symbols.


More information about the es-discuss mailing list