Comment #3 on issue 13865 by gvdkrol: Unexpected Javascript behaviour
http://code.google.com/p/chromium/issues/detail?id=13865
var x;
testArray = new Array();
testArray[43839] = "43839";
testArray[21630] = "21630";
testArray[23985] = "23985";
testArray[42181] = "42181";
testArray[52262] = "52262";
testArray[26231] = "26231";
testArray[27395] = "27395";
testArray[42346] = "42346";
testArray[43007] = "43007";
testArray[64831] = "64831";
testArray[21532] = "21532";
testArray[48686] = "48686";
for (x in testArray)
{
document.write(testArray[x] + "<br />");
}
This is the order in IE, Firefox:
43839
21630
23985
42181
52262
26231
27395
42346
43007
64831
21532
48686
This is Chrome:
23985
27395
43839
21532
48686
52262
43007
26231
64831
42181
21630
42346
For Chrome, I really don't see an order. It seems just random, not order of
associate
key.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---