Source code

Revision control

Copy as Markdown

Other Tools

{"version":3,"file":"step-over-for-of-array-closure.js","sources":["rollup-babel6://./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":["root","console","log","val"],"mappings":";;;EAAA;AACA,EAAe,SAASA,IAAT,GAAgB;EAC7BC,UAAQC,GAAR,CAAY,YAAZ;;EAD6B,6BAGlBC,GAHkB;EAI3BF,YAAQC,GAAR,CAAY,aAAZ,EAA4B;EAAA,aAAMC,GAAN;EAAA,KAAD,EAA3B;EAJ2B;;EAAA,aAGX,CAAC,CAAD,EAAI,CAAJ,CAHW;EAG7B,2CAA0B;EAArB,QAAMA,cAAN;EAAqB,UAAfA,GAAe;EAEzB;;EAEDF,UAAQC,GAAR,CAAY,MAAZ;EACD;;;;;;;;"}