Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ecma/codegen): don't print trailing coma for rest argument #6610

Merged
merged 2 commits into from Dec 10, 2022

Conversation

alexander-akait
Copy link
Collaborator

Description:

#6589

BREAKING CHANGE:

No

Related issue (if exists):

Fixed #6589

};
let bar = {
bar: "baz",
...other
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ES2022 allows trailing comma here, but we don't have an option to force enable/disable it (or we can print it when it supported, but currently we don't use this logic), so I think we should solve it in the separated PR

@kdy1 kdy1 added this to the Planned milestone Dec 10, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!


swc-bump:

  • swc_ecma_codegen

@kdy1 kdy1 enabled auto-merge (squash) December 10, 2022 00:14
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit 68d76af into swc-project:main Dec 10, 2022
@alexander-akait alexander-akait deleted the issue-6589 branch December 10, 2022 21:51
@kdy1 kdy1 modified the milestones: Planned, v1.3.23 Dec 14, 2022
@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

SWC produces invalid code if types have a trailing coma
3 participants