From: Erik Arvidsson [[email protected]]

> We went through the exercise of only having private symbols but it lead to 
> some issues. Here is one that we identified.

> Lets assume we use a private symbol for the @@iterator. The symbol can still 
> be checked because anyone that has access to the right module can get it. It 
> is also important that a proxy for an object, O, is not invoked when you do 
> O[privateSymbol]. This means that it is not possible to create an iterable 
> proxy object, since no trap on the proxy is invoked.

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?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to