Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-09-02 Thread Allen Wirfs-Brock
On Sep 2, 2015, at 4:10 PM, John-David Dalton wrote: > Hiya, > > > [Enumerate]] must obtain the own property keys of the target object as if > > by calling its [[OwnPropertyKeys]] internal method > > Whoa that's tricky language. I assumed reading it that [[Enumerable]] was to > follow the

Re: Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-09-02 Thread Scott Sauyet
John-David Dalton wrote: > It's odd to me that: > > Reflect.ownKeys() has defined order but > Reflect.enumerate() doesn't > > I'm using Reflect.enumerate() to create a `keysIn` implementation (like > `keys` but for own & inherited key > names). > > :+1: for more

Re: Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-09-02 Thread John-David Dalton
Hiya, > [Enumerate]] must obtain the own property keys of the target object as if by calling its [[OwnPropertyKeys]] internal method Whoa that's tricky language. I assumed reading it that [[Enumerable]] was to follow the order of [[OwnPropertyKeys]] (as part of "as if by") and walking the

Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-08-22 Thread Jesse McCarthy
Meant to send this to the list originally... - Original Message - From: Jesse McCarthy es-discuss-2015...@jessemccarthy.net To: Adam Klein ad...@chromium.org Sent: Friday, August 21, 2015 3:19 PM Subject: Re: Property ordering of [[Enumerate]] / getOwnPropertyNames() Thanks

Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-08-22 Thread Jesse McCarthy
Meant to send this to the list originally... - Original Message - From: Jesse McCarthy es-discuss-2015...@jessemccarthy.net To: Allen Wirfs-Brock al...@wirfs-brock.com Sent: Friday, August 21, 2015 4:12 PM Subject: Re: Property ordering of [[Enumerate]] / getOwnPropertyNames() Re: my

Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-08-22 Thread Jesse McCarthy
Meant to send this to the list originally... - Original Message - From: Jesse McCarthy es-discuss-2015...@jessemccarthy.net To: Allen Wirfs-Brock al...@wirfs-brock.com Sent: Friday, August 21, 2015 3:59 PM Subject: Re: Property ordering of [[Enumerate]] / getOwnPropertyNames() Hey

Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-08-20 Thread Allen Wirfs-Brock
On Aug 20, 2015, at 9:54 AM, Jesse McCarthy wrote: I just want to confirm some things about property enumeration order of plain Objects. I apologize that this has probably already been discussed before, but it's hard to locate a clear answer. Please note that I'm solely asking about

Re: Property ordering of [[Enumerate]] / getOwnPropertyNames()

2015-08-20 Thread Adam Klein
This doesn't answer the spec question, exactly, but v8 doesn't currently conform to ES6's requirements for [[OwnPropertyKeys]]: some objects return names in an implementation-dependent order (see https://code.google.com/p/v8/issues/detail?id=3056 for more details). On Thu, Aug 20, 2015 at 9:54