Function.prototype.apply (thisArg, argArray)

Jose Antonio Perez joseanpg at gmail.com
Thu Oct 28 08:23:38 PDT 2010

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

> 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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101028/175877fb/attachment.html>

More information about the es-discuss mailing list