fix(minifier): collapse variables when join_vars option is true#6226
fix(minifier): collapse variables when join_vars option is true#6226
join_vars option is true#6226Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #6226 will not alter performanceComparing Summary
|
2b9838c to
ea896ec
Compare
join_vars option is true
|
I don't know the minifier at all, so I think best leave Boshen to review this. |
|
It appears that the test262 breakage is caused by the |
|
closed by #6464 |

The variable collapse AST pass was only collapsing declarations when
CompressOptions::join_varswastrue, and skipping whenfalse. This does not follow the behavior documented for this option. This PR fixes this.