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 15.4.5.1.
--
David-Sarah Hopwood
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss