@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 7.3.4 to 7.4.0
@@ -177,5 +177,4 @@ "use strict"; | ||
const parentScope = scope.getFunctionParent() || scope.getProgramParent(); | ||
const ids = path.getBindingIdentifiers(); | ||
for (const name in ids) { | ||
for (const name of Object.keys(path.getBindingIdentifiers())) { | ||
const binding = scope.getOwnBinding(name); | ||
@@ -268,5 +267,3 @@ if (binding) binding.kind = "var"; | ||
if (path.isAssignmentExpression() || path.isUpdateExpression()) { | ||
const bindings = path.getBindingIdentifiers(); | ||
for (const name in bindings) { | ||
for (const name of Object.keys(path.getBindingIdentifiers())) { | ||
if (state.outsideReferences[name] !== path.scope.getBindingIdentifier(name)) { | ||
@@ -408,3 +405,3 @@ continue; | ||
for (const name in scope.bindings) { | ||
for (const name of Object.keys(scope.bindings)) { | ||
const binding = scope.bindings[name]; | ||
@@ -435,3 +432,3 @@ if (binding.kind !== "const") continue; | ||
for (const key in letRefs) { | ||
for (const key of Object.keys(letRefs)) { | ||
const ref = letRefs[key]; | ||
@@ -459,3 +456,3 @@ const binding = scope.getBinding(ref.name); | ||
for (const key in letRefs) { | ||
for (const key of Object.keys(letRefs)) { | ||
const ref = letRefs[key]; | ||
@@ -474,3 +471,3 @@ | ||
for (const key in outsideLetRefs) { | ||
for (const key of Object.keys(outsideLetRefs)) { | ||
const ref = letRefs[key]; | ||
@@ -493,3 +490,3 @@ | ||
if (this.loop) { | ||
for (const name in outsideRefs) { | ||
for (const name of Object.keys(outsideRefs)) { | ||
const id = outsideRefs[name]; | ||
@@ -706,3 +703,3 @@ | ||
for (const name in names) { | ||
for (const name of Object.keys(names)) { | ||
declars.push(_core().types.variableDeclarator(names[name])); | ||
@@ -739,3 +736,3 @@ } | ||
if (has.hasBreakContinue) { | ||
for (const key in has.map) { | ||
for (const key of Object.keys(has.map)) { | ||
cases.push(_core().types.switchCase(_core().types.stringLiteral(key), [has.map[key]])); | ||
@@ -742,0 +739,0 @@ } |
@@ -83,3 +83,3 @@ "use strict"; | ||
for (const name in ids) { | ||
for (const name of Object.keys(ids)) { | ||
const id = ids[name]; | ||
@@ -86,0 +86,0 @@ |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "7.3.4", | ||
"version": "7.4.0", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -22,6 +22,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-block-scoping", | ||
"devDependencies": { | ||
"@babel/core": "^7.3.4", | ||
"@babel/core": "^7.4.0", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
}, | ||
"gitHead": "1f6454cc90fe33e0a32260871212e2f719f35741" | ||
"gitHead": "f1328fb913b5a93d54dfc6e3728b1f56c8f4a804" | ||
} |
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
26246
694