Source code

Revision control

Copy as Markdown

Other Tools

{"version":3,"file":"step-over-for-of-array-closure.js","sources":["rollup-babel7://./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,aAGX,CAAC,CAAD,EAAI,CAAJ,CAHW;;EAAA;EAGxB,QAAMC,cAAN;EACHF,YAAQC,GAAR,CAAY,aAAZ,EAA4B;EAAA,aAAMC,GAAN;EAAA,KAAD,EAA3B;EAJ2B;;EAG7B,2CAA0B;EAAA;EAEzB;;EAEDF,UAAQC,GAAR,CAAY,MAAZ;EACD;;;;;;;;"}