Object.getOwnPropertyDescriptors(O) ? // plural

Brendan Eich brendan at mozilla.com
Fri Mar 7 18:25:35 PST 2014


Tom Van Cutsem wrote:
> Given that most of the functions that use [[OwnPropertyKeys]] need to 
> either construct an array anyway, or want reliable results, I wonder 
> whether we shouldn't just change [[OwnPropertyKeys]] to include the 
> checks and return an array instead of an iterable. That way we avoid 
> having two internal methods that do more or less the same thing.

+1.

/be


More information about the es-discuss mailing list