diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/step-over-for-of-closure.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/step-over-for-of-closure.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/step-over-for-of-closure.js b/devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/step-over-for-of-closure.js new file mode 100644 index 0000000000..dcd77a6d18 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/step-over-for-of-closure.js @@ -0,0 +1,21 @@ +var rollupStepOverForOfClosure = (function () { + 'use strict'; + + // Babel will convert the loop body to a function to handle the 'val' lexical + // enclosure behavior. + const vals = [1, 2]; + + function root() { + console.log("pause here"); + + for (const val of vals) { + console.log("pause again", (() => val)()); + } + + console.log("done"); + } + + return root; + +}()); +//# sourceMappingURL=step-over-for-of-closure.js.map |