Skip to content

Fix emit for ES6 export default class with static initializers. #5137

Merged
rbuckton merged 3 commits into
masterfrom
fixExportDefaultClassStatics
Oct 6, 2015
Merged

Fix emit for ES6 export default class with static initializers. #5137
rbuckton merged 3 commits into
masterfrom
fixExportDefaultClassStatics

Conversation

@rbuckton

@rbuckton rbuckton commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

Fixes #5136.

Comment thread src/compiler/emitter.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

languageVersion should never be less than ES6 here since this is in emitClassLikeDeclarationForES6AndHigher

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the previous version may have been a vestige of our class emit before we split the function.

@mhegazy

mhegazy commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

👍

rbuckton added a commit that referenced this pull request Oct 6, 2015
Fix emit for ES6 export default class with static initializers.
@rbuckton rbuckton merged commit 4d3c74f into master Oct 6, 2015
@rbuckton rbuckton deleted the fixExportDefaultClassStatics branch October 6, 2015 22:55
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants