How many stacks can JavaScript handle?
Reference
Facts
- Recursive calculation may fail.
- Closures will limit and reduce the maximum number of recursive calculation.
- Always beware of Safari
Test Result
- ...loading
- ...loading
| Browser |
Maximum stacks for test 1 |
Maximum stacks for test 2 |
| IE6 | 377 | 1132 |
| IE7 | 852 | 2556 |
| Firefox 2.0.0.6 | 333 | 1000 |
| Opera 9.2 | 1116 | 2507 |
| Safari 2.0 | 33 | 99 |
| Safari 3.03 (win) | 33 | 99 |
Test Codes