@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 7.17.12 to 7.18.4
@@ -278,3 +278,3 @@ "use strict"; | ||
} = path; | ||
if (node[this.LOOP_IGNORE]) return; | ||
if (state.loopIgnored.has(node)) return; | ||
let replace; | ||
@@ -311,3 +311,3 @@ let loopText = loopNodeTo(node); | ||
replace = _core.types.returnStatement(replace); | ||
replace[this.LOOP_IGNORE] = true; | ||
state.loopIgnored.add(replace); | ||
path.skip(); | ||
@@ -713,3 +713,3 @@ path.replaceWith(_core.types.inherits(replace, node)); | ||
map: {}, | ||
LOOP_IGNORE: Symbol() | ||
loopIgnored: new WeakSet() | ||
}; | ||
@@ -716,0 +716,0 @@ this.blockPath.traverse(loopLabelVisitor, state); |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "7.17.12", | ||
"version": "7.18.4", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.17.12", | ||
"@babel/core": "^7.18.2", | ||
"@babel/helper-plugin-test-runner": "^7.16.7", | ||
"@babel/traverse": "^7.17.12" | ||
"@babel/traverse": "^7.18.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "engines": { |
27184