The aim has been consistency. All Array generic own methods that explicitly
use the length property have the same behavior:

- Let lenVal be the result of calling the [[Get]] internal method of O with
argument "length".
- Let len be ToUint32(lenVal).

Function.prototype.apply  now  behave the same way.

You've been quite right in your proposal  ..


> I think RangeError is better here.



... but if you change the behavior of Function.prototype.apply , it would be
necessary also modify the behavior of the Array.prototype methods for
consistency.



> As I understand generic array like
> object. It is an object which can safe converted to array object. It
> will be good if ECMA-262 specified what is an array like object.


Strongly agree!

Jose
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to