step-over-for-of-closure.js (437B)
1 var rollupStepOverForOfClosure = (function () { 2 'use strict'; 3 4 // Babel will convert the loop body to a function to handle the 'val' lexical 5 // enclosure behavior. 6 const vals = [1, 2]; 7 8 function root() { 9 console.log("pause here"); 10 11 for (const val of vals) { 12 console.log("pause again", (() => val)()); 13 } 14 15 console.log("done"); 16 } 17 18 return root; 19 20 }()); 21 //# sourceMappingURL=step-over-for-of-closure.js.map