Skip to content

Commit 189482e

Browse files
author
unknown
committed
Produce a name for anonymous class expressions when we perform downlevel emit.
1 parent ba8be9e commit 189482e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ module ts {
262262
switch (node.kind) {
263263
case SyntaxKind.FunctionDeclaration:
264264
case SyntaxKind.ClassDeclaration:
265+
case SyntaxKind.ClassExpression:
265266
generateNameForFunctionOrClassDeclaration(<Declaration>node);
266267
break;
267268
case SyntaxKind.ModuleDeclaration:

0 commit comments

Comments
 (0)