Are Private name and Weak Map the same feature? and the Assoc API

David Bruant bruant.d at
Mon Dec 19 04:58:19 PST 2011

Le 19/12/2011 11:03, Tom Van Cutsem a écrit :
> (...)
> Separate getPrivate/setPrivate traps would avoid this confusion:
> (...)
One thing that is unsaid in the current proposal is whether private
names can be used with Object.defineProperty and
Object.getOwnPropertyDescriptor. I think that private getters and
setters would be awesome.
But it would mean that the "private handler API" would need to be extend
to 'definePrivateProperty', 'getOwnPrivatePropertyDescriptor' (and
'deletePrivate' as well)


More information about the es-discuss mailing list