doc_recursion-stack.html 662 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ -->
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8"/>
  7. <title>Debugger test page</title>
  8. </head>
  9. <body>
  10. <script type="text/javascript">
  11. function simpleCall() {
  12. debugger;
  13. }
  14. function evalCall() {
  15. eval("debugger;");
  16. }
  17. var gRecurseLimit = 100;
  18. var gRecurseDepth = 0;
  19. function recurse() {
  20. if (++gRecurseDepth == gRecurseLimit) {
  21. debugger;
  22. gRecurseDepth = 0;
  23. return;
  24. }
  25. recurse();
  26. }
  27. </script>
  28. </body>
  29. </html>