callable objects ?
brendan at mozilla.org
Thu Apr 19 10:01:02 PDT 2012
David Bruant wrote:
> By the way, I'm realizing now that the getOwnPropertyNames trap does
> string coercion on elements of the array returned by the trap. How
> will this work with private names? Hopefully, these won't be coerced,
> but based on what? Will private names have a particular [[Native Brand]]?
My understanding (not necessarily reflected in the private name objects
proposal, alas) was that we would not break *any* existing reflection
facility (for-in, Object.getOwnPropertyNames, etc.) by suddenly
returning non-string property names. No reflection on private names.
More information about the es-discuss