Does v8::Object::GetPropertyNames() guarantee that the property names will be returned in the same order as they were defined above? I did a test, and the order is preserved, but I want to know if this is guaranteed.
Specification 5.1 of ECMA-262: "The mechanics and order of enumerating the properties [...] is not specified."
For v8 the order of enumerating the properties is currently also unspecified. It might work in some cases, but better don't rely on it.
Chromium ticket about v8 ordering: http://code.google.com/p/chromium/issues/detail?id=21901