summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/script-switching-02.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/script-switching-02.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/script-switching-02.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/script-switching-02.js b/devtools/client/debugger/test/mochitest/examples/script-switching-02.js
new file mode 100644
index 0000000000..228d935469
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/script-switching-02.js
@@ -0,0 +1,14 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+function secondCall() {
+ // This comment is useful: ☺
+ debugger;
+ function foo() {}
+ if (x) {
+ foo();
+ }
+}
+
+var x = true;
+console.log("hi")