Thoughts on IEEE P754

David-Sarah Hopwood david.hopwood at
Fri Aug 22 11:41:09 PDT 2008

Mike Cowlishaw wrote:
> In effect the array definition in ES3 says -- in a rather roundabout way 
> -- that all indexes must be an integer (which fits in 32 bits if encoded 
> in binary).

No, arrays can have arbitrary properties, and there are no additional
coercions when a property is accessed on an array. The only differences
from other objects are that:
  - setting 'length' may have additional side effects;
  - *if* a property that is set is an "array index", then there may be
    a side effect on 'length'.

See ECMA-262 section

David-Sarah Hopwood

More information about the Es-discuss mailing list