title: Browser Javascript Stack size limit
body: <p>I am getting some client-side Javascript stack overflow issues specifically in IE browser, 
  this is happening inside a third party library that makes some function calls and for some reason they occasionally brake in IE only due to it's low stack limit. </p>
  
  <p>I then coded a small test HTML to test the stack size limit for some browsers and found that IE8 has actually a small stack limit if compared to FF 7 or Chrome 14 running on a Laptop with Windows 7 OS, 8Gb RAM:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;!-- begin Script: --&gt;
  &lt;script type="text/javascript"&gt;
  
  function doSomething(){
  
    var i = 3200;
    doSomethingElse(i);
  
  }
  
  function doSomethingElse(i){
    if (i == 0) return -1;
    doSomethingElse(i-1);
  }
  
  doSomething(); 
  
  &lt;/script&gt;
  &lt;!-- END OF PAGE --&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>IE raises stack overflow when the values are around 3200, Firefox and Chrome can handle a very deep recursion if compared to IE.</p>
  
  <p>I would like to know if there's a way to tie the stack-overflow exception with the Javascript function that raised it during runtime in IE or any other browser and if it could give the stacktrace with the chain of function in the stack at the moment the error was raised.</p>