summaryrefslogtreecommitdiff
path: root/browser/devtools/debugger/test/browser_dbg_stack.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/devtools/debugger/test/browser_dbg_stack.html')
-rw-r--r--browser/devtools/debugger/test/browser_dbg_stack.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/browser/devtools/debugger/test/browser_dbg_stack.html b/browser/devtools/debugger/test/browser_dbg_stack.html
new file mode 100644
index 000000000..c3d083087
--- /dev/null
+++ b/browser/devtools/debugger/test/browser_dbg_stack.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML>
+<html>
+<head><meta charset='utf-8'/><title>Browser Debugger Test Tab</title>
+<!-- Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ -->
+<script type="text/javascript">
+
+function simpleCall() {
+ debugger;
+}
+
+function evalCall() {
+ eval("debugger;");
+}
+
+var gRecurseLimit = 100;
+var gRecurseDepth = 0;
+function recurse() {
+ if (++gRecurseDepth == gRecurseLimit) {
+ debugger;
+ gRecurseDepth = 0;
+ return;
+ }
+ recurse();
+}
+
+</script>
+</head>
+
+<body></body>
+
+</html>