Comment #65 on issue 164 by vprice.ua: Wrong order in Object properties
interation
http://code.google.com/p/v8/issues/detail?id=164
THIS IS A BUG. BECAUSE:
Some language as PHP use associative arrays. JSON standart can send that
array as object
Example: {"2": "Value 1", "1": "Value 2"} => php array(2 => 'Value 1', 1
=> 'Value 2')
Browser get JSON data after AJAX request and all browsers, except Goggle,
mamnipulate with Object properties correctly
Associative arrays with numeric keys is very convenient.
Example:
if (json) {
for (var index in json) {
if (json.hasOwnProperty(index)) {
add_option(el, index, json[index])
}
}
}
I and many developers use this concept many years. For iteration as
property in object is very convenient. And no matter what keys (properties)
data types (integers or strings).
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev