Comment #136 on issue 164 by impinball: Wrong order in Object properties interation
https://code.google.com/p/v8/issues/detail?id=164

Also, the best way to test would be something like this, which is completely platform-independent, and should run on nearly everything. I also made sure to make it as small as possible minified.

```js
var iteratesObjectsInOrder = (function (list, prop) {
  for (prop in {3: 1, 2: 1, 1: 1}) {
    list.push(prop);
  }
  return list[0] == '3' && list[1] == '2' && list[2] == '1';
})([]);
```

But, as far as I can tell, V8 does currently iterate in order. It still is unwise to rely on it, as #135 said. Also, even though that is the case, if you add or subtract a key, anything could happen.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to