Skip to content

fix(es/minifier): Fix undefined judgement #9146

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

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

CPunisher
Copy link
Member

@CPunisher CPunisher commented Jul 5, 2024

Description:

by symbol name -> by whether it points to global undefined or not.

🤔 I'm not sure why my update changes the order of some comparison after running UPDATE=1 cargo test -p swc -p swc_ecma_minifier --features concurrent. But running cargo run --example compress input.js doesn't change this.

The updated test results all involve variables with undefined ident (although they are indeed uninitialized).

Related issue:

@CPunisher CPunisher requested a review from a team as a code owner July 5, 2024 06:06
@CPunisher CPunisher marked this pull request as draft July 5, 2024 06:15
@CPunisher CPunisher marked this pull request as ready for review July 5, 2024 06:22
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.

swc-bump:

  • swc_ecma_minifier
  • swc_core

@kdy1 kdy1 enabled auto-merge (squash) July 5, 2024 06:32
@kdy1 kdy1 changed the title fix(es/minifier): update undefined judgement fix(es/minifier): Fix undefined judgement Jul 5, 2024
@kdy1 kdy1 added this to the Planned milestone Jul 5, 2024
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 1a739b7 into swc-project:main Jul 5, 2024
148 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.6.10 Jul 6, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 5, 2024
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.

Wrong compress with undefined (which is declared by user) on void 0
3 participants