18.104.22.168 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
- 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss