15.3.4.3 Function.prototype.apply (thisArg, argArray)

Asen Bozhilov asen.bozhilov at gmail.com
Wed Oct 27 18:13:54 PDT 2010


ES5 does some changes in Function.prototype.apply. It allows generic
array-like object for a second argument of `apply' method.

| 6. Let n be ToUint32(len).
| 7. If n is not equal to ToNumber(len), then throw a TypeError exception.

Isn't better to throws a RangeError instead of TypeError? Is this a
typo or it must be a observable behavior of `apply'?


More information about the es-discuss mailing list