Skip to content

Commit 07ea406

Browse files
committed
Merge pull request #2497 from Microsoft/decorators_emit
Emit decorators when --target ES3
2 parents e33b24d + f27caf5 commit 07ea406

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/compiler/emitter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3757,10 +3757,6 @@ module ts {
37573757
}
37583758

37593759
function emitDecoratorsOfClass(node: ClassDeclaration) {
3760-
if (languageVersion < ScriptTarget.ES5) {
3761-
return;
3762-
}
3763-
37643760
emitDecoratorsOfMembers(node, /*staticFlag*/ 0);
37653761
emitDecoratorsOfMembers(node, NodeFlags.Static);
37663762
emitDecoratorsOfConstructor(node);

0 commit comments

Comments
 (0)