Merge pull request #2497 from Microsoft/decorators_emit

Emit decorators when --target ES3
This commit is contained in:
Ron Buckton 2015-03-25 16:13:49 -07:00
commit 07ea4064a2

View file

@ -3757,10 +3757,6 @@ module ts {
}
function emitDecoratorsOfClass(node: ClassDeclaration) {
if (languageVersion < ScriptTarget.ES5) {
return;
}
emitDecoratorsOfMembers(node, /*staticFlag*/ 0);
emitDecoratorsOfMembers(node, NodeFlags.Static);
emitDecoratorsOfConstructor(node);