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/compat): Handle __proto__ edge case in shorthand pass #8077

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

magic-akari
Copy link
Member

@magic-akari magic-akari commented Oct 7, 2023

@magic-akari magic-akari marked this pull request as ready for review October 7, 2023 10:55
@kdy1 kdy1 self-requested a review October 8, 2023 00:57
@kdy1 kdy1 added this to the Planned milestone Oct 8, 2023
@kdy1
Copy link
Member

kdy1 commented Oct 8, 2023

CI will fail, but some of them are not related to this PR and will be fixed by #8079

*prop = Prop::KeyValue(KeyValueProp {
key: PropName::Ident(quote_ident!(*span, sym.clone())),
value: Box::new(quote_ident!(*span, sym.clone()).into()),
key: if ident.sym == js_word!("__proto__") {
Copy link
Member

Choose a reason for hiding this comment

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

Can you rebase?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

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.

Thank you!


swc-bump:

  • swc_ecma_transforms_compat

@kdy1 kdy1 enabled auto-merge (squash) October 10, 2023 03:51
@kdy1 kdy1 merged commit a912937 into swc-project:main Oct 10, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.93 Oct 13, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 12, 2023
@magic-akari magic-akari deleted the fix/shorthand branch December 5, 2023 03:13
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.

2 participants