Revert to standard ASI behavior for class properties#3332
Revert to standard ASI behavior for class properties#3332loganfsmyth merged 3 commits intobabel:masterfrom
Conversation
Current coverage is
|
|
Thanks. And just for clarity, would you mind adding a few more tests? |
|
@jeffmo Sure, I'll add those test cases. I don't think would work though. |
|
Actually nevermind. Currently Babel just does not handle parsing assignments to computed properties though. |
|
I added the 3 of the 5 that don't involve computed properties. |
|
Thanks, this looks correct |
|
👍 |
@loganfsmyth Do we already have an issue for that one? |
|
@hzoo I don't think we do. I didn't realize it was actually supposed to be supported :p |
Revert to standard ASI behavior for class properties
|
Awesome! I look forward to the release! |
|
Which version will this be released in? |
|
I added a 6.5.x milestone, so in the next patch release - planning sunday/monday. |
|
A test involving a generator method would be great: class Foo {
p = x
*m () {} // parse error
} |
|
@michaelficarra k I'l do a PR |
Revert to standard ASI behavior for class properties
@jeffmo We'd like your final sign-off before merging this.