Object iteration order

François REMY francois.remy.dev at outlook.com
Thu Jan 10 03:47:13 PST 2013


Just to return back on the initial question:

> The event stuff is a distraction and was merely to illustrate. See
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=20158#c1 For the APIs
> we define in "DOM-land" we aim to have them fully deterministic even
> when developers do strange things.

Why not order the keys alphabetically when you use them in a DOM API?

Alphabetical ordering don't make sense on ES objects because of the prototype inheritance and because it would force to transform an enumerator into a list to perform the ordering, but maybe it does in the case of the DOM when it use an ECMAScript object as a dictionary? 		 	   		  


More information about the es-discuss mailing list