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

refactor(es/minifier): Simplify analyzer context #8164

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

Austaras
Copy link
Member

Description:

BREAKING CHANGE:

Related issue (if exists):

@Austaras
Copy link
Member Author

This PR eagerly mark idents as assigned, this may add some performance cost, but generally speaking LHS is very small.

@@ -37,19 +37,19 @@
}// same as above but on left of a binary expression
{
let b, a = 0;
[{ 1: b } = [
[{ [a = 1]: b } = [
Copy link
Member

Choose a reason for hiding this comment

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

Oh this is a bugfix

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. This PR arises from the problem that assign happens after the evaluation of LHS and RHS, so it's impossible to report reference and assign at the same time.

@kdy1 kdy1 enabled auto-merge (squash) October 27, 2023 17:38
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

@kdy1 kdy1 merged commit bb02cdd into swc-project:main Oct 27, 2023
142 of 143 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.3.96 Nov 3, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 4, 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

3 participants