On Apr 21, 2011, at 12:57 AM, David Bruant wrote: >> The stringification of the key in obj[key] is fundamental to objects. It >> does not apply to WeakMaps, so wm[obj] seems like a trap. Sometimes o[x] >> will convert x to string and index, other times it will use an x object as a >> weak map key. > However, I don't understand this point. If, as I suggested, semantics of ...
I know, you are not proposing always to stringify, of course. That was my point: sometimes x is converted to string (depending on base value evaluated from o being an object), other times not (o evaluates to a WeakMap instance). IOW I was making explicit the "different semantics" you propose "using the same syntax". /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

