Skip to content

Conversation

@CyrusNajmabadi
Copy link
Contributor

Fixes #2574

Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a test with a decorator as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the current approach should work.

_a = class C {} ,
_a = __decorate(C, dec),
_a.a = 1,
_a;

@mhegazy
Copy link
Contributor

mhegazy commented Apr 3, 2015

👍

Copy link
Member

Choose a reason for hiding this comment

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

let

CyrusNajmabadi added a commit that referenced this pull request Apr 3, 2015
Add support for emitting static properties in class expressions in ES6.
@CyrusNajmabadi CyrusNajmabadi merged commit d56f2f6 into master Apr 3, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the staticClassProps branch April 3, 2015 21:03
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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.

Class expression emit in ES6 is not correct

6 participants