Array lengthening methods applied to maximally long arrays

Brendan Eich brendan at mozilla.com
Wed May 13 11:21:00 PDT 2009


On May 13, 2009, at 8:33 AM, Jason Orendorff wrote:

> On Wed, May 13, 2009 at 10:19 AM, Allen Wirfs-Brock
> <Allen.Wirfs-Brock at microsoft.com> wrote:
>> Firefox 3.0.8 - does not conform
>> No range error on a.push(1) returns 0, creates a non-array index  
>> property named "4294967295" and sets length to 0
>>
>> It's possible that developmental builds of the above produce  
>> different results.  [...]
>
> In dev builds Firefox now conforms with ES3 on this point.

And in Firefox 3.5 betas -- I wanted to clarify that "dev builds" does  
not mean only the release after 3.5.


> It isn't worth changing this.  The general mess can't be cleaned up,
> and this particular case seems unlikely to hurt anyone in practice.

It's totally an edge case, but if everyone agrees, it will probably  
get spec'ed at some point. For ES5, probably not -- up to Allen at  
this point.

/be


More information about the es-discuss mailing list