- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Wed, 4 Jun 2014 11:46:53 +0200
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Jake Archibald <jaffathecake@gmail.com>, Domenic Denicola <domenic@domenicdenicola.com>, public-script-coord <public-script-coord@w3.org>, Joshua Bell <jsbell@chromium.org>, Jungkee Song <jungkee.song@samsung.com>, Yehuda Katz <wycats@gmail.com>, Alex Russell <slightlyoff@google.com>, Tobie Langel <tobie.langel@gmail.com>, WebApps WG <public-webapps@w3.org>
On Wed, Jun 4, 2014 at 9:49 AM, Jonas Sicking <jonas@sicking.cc> wrote: > On Wed, Jun 4, 2014 at 12:31 AM, Anne van Kesteren <annevk@annevk.nl> wrote: >> Does ES define the order of { "x": "a", "y": "b" } btw? > > I believe so, but someone would need to check. Either way I think > browsers effectively are forced to return a consistent order for > web-compat reasons. I checked. It's not true, see http://esdiscuss.org/topic/for-in-evaluation-order#content-10 See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-ordinary-object-internal-methods-and-internal-slots-enumerate for the specification. It seems in particular implementations will differ on numeric "keys", potentially other bits. -- http://annevankesteren.nl/
Received on Wednesday, 4 June 2014 09:47:21 UTC