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

feat(es/minifier): Remove unused label #7478

Merged
merged 2 commits into from
Jun 7, 2023
Merged

Conversation

Austaras
Copy link
Member

@Austaras Austaras commented Jun 1, 2023

Description:

BREAKING CHANGE:

Related issue (if exists):

for(;;);
for(;;)for(;;);
Copy link
Member Author

Choose a reason for hiding this comment

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

Original implementation would transform

SEVEN: do do do break SEVEN;
while (true);
while (true);
while (true);

into

for(;;)for(;;);

but it's actually a loop that immediately break.

@kdy1 kdy1 added this to the Planned milestone Jun 2, 2023
@kdy1 kdy1 self-assigned this Jun 2, 2023
@kdy1 kdy1 requested a review from jridgewell June 2, 2023 02:19
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!
Test changes look good, but I think I need to run benchmark before merging this, as visitors sometimes explode.


swc-bump:

  • swc_ecma_minifier

jridgewell
jridgewell previously approved these changes Jun 2, 2023
crates/swc_ecma_minifier/src/compress/optimize/util.rs Outdated Show resolved Hide resolved
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_minifier

@kdy1 kdy1 enabled auto-merge (squash) June 7, 2023 03:36
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 62075fa into swc-project:main Jun 7, 2023
127 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.3.63 Jun 12, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Jul 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.

None yet

4 participants