Source code

Revision control

Copy as Markdown

Other Tools

{"version":3,"file":"step-over-for-of-array-closure.js","sources":["rollup://./step-over-for-of-array-closure/input.js"],"sourcesContent":["// Babel will optimize this for..of because it call tell the value is an array.\nexport default function root() {\n console.log(\"pause here\");\n\n for (const val of [1, 2]) {\n console.log(\"pause again\", (() => val)());\n }\n\n console.log(\"done\");\n}\n"],"names":[],"mappings":";;;EAAA;AACA,EAAe,SAAS,IAAI,GAAG;EAC/B,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;;EAE5B,EAAE,KAAK,MAAM,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;EAC5B,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;EAC9C,GAAG;;EAEH,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;EACtB,CAAC;;;;;;;;"}