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(es/codegen): Add quotes to property names when ascii_only is true #7820

Merged
merged 6 commits into from
Aug 16, 2023

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Aug 16, 2023

@kdy1 kdy1 added this to the Planned milestone Aug 16, 2023
@kdy1 kdy1 self-assigned this Aug 16, 2023
@kdy1 kdy1 changed the title fix(es/codegen): Fix ascii_only fix(es/codegen): Add quotes to object attribute names when ascii_only is true Aug 16, 2023
@kdy1 kdy1 changed the title fix(es/codegen): Add quotes to object attribute names when ascii_only is true fix(es/codegen): Add quotes to property names when ascii_only is true Aug 16, 2023
Copy link
Member Author

@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.

swc-bump:

  • swc_ecma_codegen

@kdy1 kdy1 marked this pull request as ready for review August 16, 2023 18:17
@kdy1 kdy1 enabled auto-merge (squash) August 16, 2023 18:18
kodiakhq[bot]
kodiakhq bot previously approved these changes Aug 16, 2023
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 04921f3 into swc-project:main Aug 16, 2023
128 checks passed
@kdy1 kdy1 deleted the issue-7805 branch August 16, 2023 19:09
export default {
\u3131: '\u11B0',
"\u3131": '\u11B0',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This is actually fine, \u escapes are legal. It's just \x escapes that aren't.

@kdy1 kdy1 modified the milestones: Planned, v1.3.78 Aug 17, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Sep 17, 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.

ascii_only handles object attribute names missing double quotes
3 participants