Object.getOwnPropertyDescriptors(O) ? // plural

Brendan Eich brendan at mozilla.com
Thu Mar 6 13:24:14 PST 2014

> André Bargull <mailto:andre.bargull at udo.edu>
> March 6, 2014 at 1:21 PM
>> I would rephrase into this:
>> if you need a getOwnPropertyNames trap, you might need for consistency a
>> getOwnPropertySymbols independently from getOwnPropertyDescriptors since
>> these methods are already available.
> While it shares the same name with Object.getOwnPropertyNames(), this 
> getOwnPropertyNames trap is supposed to return string and symbol keyed 
> properties, see http://esdiscuss.org/topic/ownpropertykeys .

Should the trap end in Keys not Names?


More information about the es-discuss mailing list