Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:49:48+00:00 2026-05-26T06:49:48+00:00

I am getting some client-side Javascript stack overflow issues specifically in IE browser, this

  • 0

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.

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:

<html>
<body>

<!-- begin Script: -->
<script type="text/javascript">

function doSomething(){

  var i = 3200;
  doSomethingElse(i);

}

function doSomethingElse(i){
  if (i == 0) return -1;
  doSomethingElse(i-1);
}

doSomething(); 

</script>
<!-- END OF PAGE -->

</body>
</html>

IE raises stack overflow when the values are around 3200, Firefox and Chrome can handle a very deep recursion if compared to IE.

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:49:48+00:00Added an answer on May 26, 2026 at 6:49 am

    Using a simple test:

    var i = 0;
    function inc() {
      i++;
      inc();
    }
        
    try {
      inc();
    }
    catch(e) {
      // The StackOverflow sandbox adds one frame that is not being counted by this code
      // Incrementing once manually
      i++;
      console.log('Maximum stack size is', i, 'in your current browser');
    }

    Internet Explorer

    • IE6: 1130
    • IE7: 2553
    • IE8: 1475
    • IE9: 20678
    • IE10: 20677

    Mozilla Firefox

    • 3.6: 3000
    • 4.0: 9015
    • 5.0: 9015
    • 6.0: 9015
    • 7.0: 65533
    • 8b3: 63485
    • 17: 50762
    • 18: 52596
    • 19: 52458
    • 42: 281810
    • 89: 10746
    • 91: 26441

    Google Chrome

    • 14: 26177
    • 15: 26168
    • 16: 26166
    • 25: 25090
    • 47: 20878
    • 51: 41753
    • 93: 13903

    Safari

    • 4: 52426
    • 5: 65534
    • 9: 63444
    • 14: 45606

    Safari iOS

    • 15: 7909

    Opera

    • 10.10: 9999
    • 10.62: 32631
    • 11: 32631
    • 12: 32631
    • 78: 13908

    Edge

    • 87: 13970
    • 93: 13903

    Yandex

    • 21: 13909

    In regard to your question, use your browser’s developer tools to see the stack. In IE 8+, hit F12, go to the Script tab, and click Start Debugging. It will break when an exception is thrown, and you can see the call stack. You can also use Chrome’s developer tools, Ctrl+Shift+J.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with user controls getting dynamically added. Inside some of these
I have some code(client side) that is trying to cache responses from a web
I try to add client side validation using this line of code: @Html.EnableClientValidation() But
Currently local storage for javascript is limited to cookies, which makes robust client side
The Benchmark: http://jsperf.com/substringing So, I'm starting up my very first HTML5 browser-based client-side project.
I'm getting some strange, intermittent, data aborts (< 5% of the time) in some
I am getting some errors thrown in my code when I open a Windows
I'm getting some objects from an external library and I need to store those
I am interested in getting some Python code talking to some Ruby code on
I'm getting some really wierd linking errors from a class I wrote. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.