Thoughts on IEEE P754
david.hopwood at industrial-designers.co.uk
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 184.108.40.206.
More information about the Es-discuss