On Tue, Mar 4, 2014 at 12:48 PM, Andrea Giammarchi < [email protected]> wrote:
> yes, because `Object.getOwnPropertyDescriptor(O, k)` accepts both > `propertyName` and `Symbol` as second argument. The plural, and to be > consistent with the shallowCopy example, should return a list of both. > > This is also because all descriptors returned by > `Object.getOwnPropertySymbols` can be used same way > `Object.getOwnPropertyNames` ... so, unless `Object.defineProperty(O, k, > d)` does not accept `k` as `Symbol` (basically breaking this proposal via > `Object.create`) I don't see why the plural version should not return > descriptors for both kind of properties. > > My 2 cents > Makes sense to me Rick
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

