From 189482e730bbb4cc5b5b081923ebefb141ca15c3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 1 Apr 2015 17:28:59 -0700 Subject: [PATCH] Produce a name for anonymous class expressions when we perform downlevel emit. --- src/compiler/emitter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 6ec4ea23898..5d4bf9df3e1 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -262,6 +262,7 @@ module ts { switch (node.kind) { case SyntaxKind.FunctionDeclaration: case SyntaxKind.ClassDeclaration: + case SyntaxKind.ClassExpression: generateNameForFunctionOrClassDeclaration(node); break; case SyntaxKind.ModuleDeclaration: