Skip to content

Commit

Permalink
Fix ambient classDeclaration in registerDeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
The-x-Theorist committed Dec 4, 2021
1 parent b48b880 commit 6612831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-traverse/src/scope/index.ts
Expand Up @@ -708,6 +708,7 @@ export default class Scope {
} else if (path.isClassDeclaration() && path.node.declare) {
this.registerBinding("class", path);
} else if (path.isClassDeclaration()) {
if (path.node.declare) return;
this.registerBinding("let", path);
} else if (path.isImportDeclaration()) {
const specifiers = path.get("specifiers");
Expand Down

0 comments on commit 6612831

Please sign in to comment.