Type of property names, as seen by proxy traps

Andreas Rossberg rossberg at google.com
Wed Jul 6 11:17:20 PDT 2011


While putting together some test cases for Object.keys, I wondered: is
it intended that property names are always passed to traps as strings?
It seems like a reasonable assumption, but is not currently the case
everywhere (e.g. the default implementation for `keys' can violate
this assumption when passing names to this.getOwnPropertyDescriptor).

/Andreas


More information about the es-discuss mailing list