mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 01:33:15 -05:00
isExpandoFunctionDeclaration only checks values (#27052)
Previously it checked types too, which caused a crash because types don't have valueDeclaration set. But expando functions can't export types, only values.
This commit is contained in:
committed by
GitHub
parent
6bd1da20c9
commit
2f8a646f8e
@@ -28154,7 +28154,7 @@ namespace ts {
|
||||
if (!symbol || !(symbol.flags & SymbolFlags.Function)) {
|
||||
return false;
|
||||
}
|
||||
return !!forEachEntry(getExportsOfSymbol(symbol), p => isPropertyAccessExpression(p.valueDeclaration));
|
||||
return !!forEachEntry(getExportsOfSymbol(symbol), p => p.flags & SymbolFlags.Value && isPropertyAccessExpression(p.valueDeclaration));
|
||||
}
|
||||
|
||||
function getPropertiesOfContainerFunction(node: Declaration): Symbol[] {
|
||||
|
||||
Reference in New Issue
Block a user