@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 7.14.2 to 7.14.4
@@ -591,3 +591,3 @@ "use strict"; | ||
const block = this.block; | ||
let declarators = []; | ||
const declarators = []; | ||
@@ -616,3 +616,9 @@ if (this.loop) { | ||
declarators = declarators.concat(node.declarations || node); | ||
if (node.declarations) { | ||
for (let i = 0; i < node.declarations.length; i++) { | ||
declarators.push(node.declarations[i]); | ||
} | ||
} else { | ||
declarators.push(node); | ||
} | ||
} | ||
@@ -619,0 +625,0 @@ |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "7.14.2", | ||
"version": "7.14.4", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "7.14.2", | ||
"@babel/core": "7.14.3", | ||
"@babel/helper-plugin-test-runner": "7.13.10" | ||
} | ||
} |
26351
677