Comment #68 on issue 164 by timdown: Wrong order in Object properties interation
http://code.google.com/p/v8/issues/detail?id=164
Sigh. The fact that PHP implements ordering in its associative arrays is completely irrelevant to whether this is a bug in one browser's JavaScript implementation. Yes, it would be convenient if browsers and specification agreed an enumeration order for object properties.
If you've written hundred of projects that rely on an enumeration order in JavaScript then I have little sympathy: ECMAScript specifically mentions that the order is implementation dependent (i.e. undefined). At no point as far as I'm aware (correct me if I'm wrong) has there ever been uniform behaviour across the dominant browsers, unless it was when Netscape 2 ruled the world.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
