Yes, but every other implementation does that, so a lot of code implicitly relies on this. You don't really expect programmers to read language specs, do you?
Jörn On Thu, Sep 4, 2008 at 9:53 PM, Matt Kruse <[EMAIL PROTECTED]> wrote: > > On Sep 4, 2:00 pm, Feng <[EMAIL PROTECTED]> wrote: >> The second one is a bug in V8 (or Chrome). It returns reversed >> enumeration order of keys if the object is a literal. > > This is not a bug in V8. The order of keys is never guaranteed to be > in the order they are inserted or specified in a literal. > > Matt Kruse >