using Private name objects for declarative property definition.

Andreas Rossberg rossberg at google.com
Mon Jul 11 07:47:28 PDT 2011


On 9 July 2011 14:42, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> Unlike Names, strings and numbers are forgeable, so if they were
> allowed as keys in WeakMaps, the associated value could never be
> safely collected.  Names, by contrast, have identity.

Of course you are right, and I shouldn't post in the middle of the night.

/Andreas


More information about the es-discuss mailing list