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: functions may be compressed mistakenly if passes=2 #1047

Merged
merged 2 commits into from Sep 16, 2021

Conversation

gdh1995
Copy link
Contributor

@gdh1995 gdh1995 commented Aug 23, 2021

This fixes #1046 . I also added a simple test case to tests/compress/inline.js to verify it.

@fabiosantoscode
Copy link
Collaborator

Excellent! I suggested a change but otherwise it looks great!

Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
@fabiosantoscode
Copy link
Collaborator

Awesome!

@fabiosantoscode fabiosantoscode merged commit 0479921 into terser:master Sep 16, 2021
@gdh1995 gdh1995 deleted the fix-inlining-in-2-passes branch September 17, 2021 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inlining a function 3 times may break if passes=2
2 participants