@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 7.20.14 to 7.20.15
@@ -67,6 +67,3 @@ "use strict"; | ||
} = (0, _loop.getUsageInBody)(binding, path); | ||
if (capturedInClosure) { | ||
markNeedsBodyWrap(); | ||
captured.push(name); | ||
} else if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) { | ||
if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) { | ||
const newName = headScope.generateUid(name); | ||
@@ -76,2 +73,6 @@ headScope.rename(name, newName); | ||
} | ||
if (capturedInClosure) { | ||
markNeedsBodyWrap(); | ||
captured.push(name); | ||
} | ||
if (isForStatement && hasConstantViolations) { | ||
@@ -78,0 +79,0 @@ updatedBindingsUsages.set(name, usages); |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "7.20.14", | ||
"version": "7.20.15", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83619
677