@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 7.14.1 to 7.14.2
@@ -32,2 +32,3 @@ "use strict"; | ||
const visitedMaybeTDZNodes = new WeakSet(); | ||
const visitor = { | ||
@@ -51,5 +52,9 @@ ReferencedIdentifier(path, state) { | ||
if (status === "maybe") { | ||
if (visitedMaybeTDZNodes.has(node)) { | ||
return; | ||
} | ||
visitedMaybeTDZNodes.add(node); | ||
const assert = buildTDZAssert(node, state); | ||
bindingPath.parent._tdzThis = true; | ||
path.skip(); | ||
@@ -56,0 +61,0 @@ if (path.parentPath.isUpdateExpression()) { |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "7.14.1", | ||
"version": "7.14.2", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "7.14.0", | ||
"@babel/core": "7.14.2", | ||
"@babel/helper-plugin-test-runner": "7.13.10" | ||
} | ||
} |
26197
671