Don't add params of anonymous exported function decls to the outer scope (#9613)
* Don't add params of anonymous exported function decls to the outer scope * Test
This commit is contained in:
@@ -49,10 +49,7 @@ export default function splitExportDeclaration(exportDeclaration) {
|
||||
exportDeclaration.replaceWith(updatedDeclaration);
|
||||
|
||||
if (needBindingRegistration) {
|
||||
scope.registerBinding(
|
||||
isClassDeclaration ? "let" : "var",
|
||||
exportDeclaration,
|
||||
);
|
||||
scope.registerDeclaration(exportDeclaration);
|
||||
}
|
||||
|
||||
return exportDeclaration;
|
||||
|
||||
Reference in New Issue
Block a user