Function apply and call (was RE: Bait taken: Arguments about arguments)

Brendan Eich brendan at
Thu Jan 15 19:00:17 PST 2009

On Jan 15, 2009, at 6:49 PM, Brendan Eich wrote:

>> The issue here is that typical implementations do have a rather small
>> limit on number of arguments. If the spec doesn't acknowledge this,
>> then those implementations are clearly violating the spec.
> SpiderMonkey functions may have at most 65535 parameters.

The 64K-1 limit applies to direct calls. Calling via  
Function.prototype.apply has a larger limit for sanity (accidental or  
trivial-malicious DOS input): 16777215 or 16M-1.


More information about the Es-discuss mailing list