title: Is there a max number of arguments JavaScript functions can accept?
body: <p>I know that JavaScript functions can accept "any" number of arguments.</p>
  
  <pre><code>function f(){};
  f(1,2,3,4 /*...*/);
  </code></pre>
  
  <p>But I'm wondering if there is actually a limit to how many "any" can be?</p>
  
  <p>E.g., let's say I hand a million arguments to <code>f()</code>. Would that work? Or would the interpreter keel over?</p>
  
  <p>I'm guessing the maximum is either (a) implementation-specific or (b) <code>(2^32)-1</code>, since the <code>arguments</code> object is array-like.</p>
  
  <p>I don't see this mentioned in the language specification, but I might not be connecting some dots.</p>