On 12/27/10 5:39 AM, Michael Day wrote:
Some quick testing with Firefox seems to show that for-in returns
properties in the order they were added to the object

Yep; it's required for web compat, as you discovered. When we accidentally broke it, we very quickly got bug reports. ;)

and some scripts  on the web (eg. RaphaelJS) seem to depend on that

Indeed.

unless I'm
horrendously misinterpreting them. This seems... bad?

Well, it's not bad except for ECMA's insistence on not specifying the order.

Are objects implicitly ordered, by implementation convention?

For implementations that have to deal with the web, yes.

-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to