title: How do I get the maximum call stack size in Javascript?
body: <p>You know, when there are too many function calls, such as infinite recursive function call, it gives an error, such as <code>Uncaught RangeError: Maximum call stack size exceeded</code>.</p>
  
  <pre><code>(function a() {a()})(); // Uncaught RangeError: Maximum call stack size exceeded
  </code></pre>
  
  <p>I want to know the way to get the <em>maximum call stack size</em> with Javascript. I think there would be only engine/runtime/browser-specific ways to do it, though.</p>