Skip to content

Commit d8151fb

Browse files
committed
Give a name when binding an errant export declaration
1 parent cc9bf13 commit d8151fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/binder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ module ts {
663663
function bindExportAssignment(node: ExportAssignment) {
664664
if (!container.symbol || !container.symbol.exports) {
665665
// Export assignment in some sort of block construct
666-
bindAnonymousDeclaration(node, SymbolFlags.Alias, "");
666+
bindAnonymousDeclaration(node, SymbolFlags.Alias, getDeclarationName(node));
667667
}
668668
else if (node.expression.kind === SyntaxKind.Identifier) {
669669
// An export default clause with an identifier exports all meanings of that identifier
@@ -678,7 +678,7 @@ module ts {
678678
function bindExportDeclaration(node: ExportDeclaration) {
679679
if (!container.symbol || !container.symbol.exports) {
680680
// Export * in some sort of block construct
681-
bindAnonymousDeclaration(node, SymbolFlags.ExportStar, "");
681+
bindAnonymousDeclaration(node, SymbolFlags.ExportStar, getDeclarationName(node));
682682
}
683683
else if (!node.exportClause) {
684684
// All export * declarations are collected in an __export symbol

0 commit comments

Comments
 (0)