fix(ast_lower): remove wrong usage of SymbolFlags::Function (#680)

closes #678

SymbolFlags::Function means something else (the whole function
declaration stored as a anonymous symbol) in TypeScript
This commit is contained in:
Boshen 2023-08-15 11:37:50 +08:00 committed by GitHub
parent 4fa6aafa3e
commit b466de522b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1439,7 +1439,6 @@ impl<'a> AstLower<'a> {
} else {
(SymbolFlags::empty(), SymbolFlags::empty())
};
let includes = includes | SymbolFlags::Function;
let id =
func.id.as_ref().map(|ident| self.lower_binding_identifier(ident, includes, excludes));
self.enter_function_scope();