By design, private symbols can only be used if you have direct access to them in some way. Public symbols should show up in getOwnPropertyNames (if I have followed recent discussion correctly). The fact that private symbols must be explicitly passed around to gain access to them is their primary feature.
On Sun, Nov 25, 2012 at 7:11 PM, Nathan Wall <[email protected]> wrote: > Given the commonness of mixing one object into another, I was wondering > how this would work with private symbols -- considering methods will expect > to find those symbols on the objects on which they are called. Has there > been any discussion about providing a way to copy private symbols "under > the hood", so-to-speak, without having to know the symbols and without > having them exposed? I imagine proxies might pose quite a problem to the > second part, but I was just wondering if this problem had been addressed or > if the mixin+symbol combo is just to be avoided. > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

