We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0583f73 commit 673da0eCopy full SHA for 673da0e
src/scope.ts
@@ -209,7 +209,7 @@ export default function scopePlugin(fork: Fork) {
209
}
210
211
if (ScopeType.check(node)) {
212
- if (namedTypes.CatchClause.check(node)) {
+ if (namedTypes.CatchClause.check(node) && node.param !== null) {
213
// A catch clause establishes a new scope but the only variable
214
// bound in that scope is the catch parameter. Any other
215
// declarations create bindings in the outer scope.
0 commit comments