@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression
Advanced tools
Comparing version 7.16.0 to 7.16.2
@@ -15,11 +15,8 @@ 'use strict'; | ||
const paramNameBinding = path.scope.getOwnBinding(name); | ||
const constantViolations = paramNameBinding.constantViolations; | ||
if (constantViolations.length === 0) { | ||
if (paramNameBinding === undefined) { | ||
return false; | ||
} | ||
const firstViolation = constantViolations[0]; | ||
if (firstViolation.node !== node) { | ||
if (paramNameBinding.kind !== "param") { | ||
return false; | ||
@@ -26,0 +23,0 @@ } |
{ | ||
"name": "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression", | ||
"version": "7.16.0", | ||
"version": "7.16.2", | ||
"description": "Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517", | ||
@@ -33,2 +33,3 @@ "repository": { | ||
"@babel/core": "^7.16.0", | ||
"@babel/helper-function-name": "^7.16.0", | ||
"@babel/helper-plugin-test-runner": "^7.16.0", | ||
@@ -35,0 +36,0 @@ "@babel/traverse": "^7.16.0" |
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
7664
4
42