Copy private symbols from one object to another

Brendan Eich brendan at mozilla.org
Mon Nov 26 09:41:04 PST 2012


Brandon Benvie wrote:
> By design, private symbols can only be used if you have direct access 
> to them in some way.

Right.

> Public symbols should show up in getOwnPropertyNames (if I have 
> followed recent discussion correctly).

I don't recall this, and it's an incompatible change from ES5. Can you 
link to an es-discuss message on it?

> The fact that private symbols must be explicitly passed around to gain 
> access to them is their primary feature.

Yup.

/be


More information about the es-discuss mailing list