summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js b/devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js
new file mode 100644
index 0000000000..c703059b07
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/sourcemapped/fixtures/step-over-for-of-array/input.js
@@ -0,0 +1,10 @@
+// Babel will optimize this for..of because it call tell the value is an array.
+export default function root() {
+ console.log("pause here");
+
+ for (const val of [1, 2]) {
+ console.log("pause again", val);
+ }
+
+ console.log("done");
+}