Skip to content

scan assignment value in drop_unused()#1578

Merged
alexlamsl merged 1 commit intomishoo:masterfrom
alexlamsl:unused-value
Mar 8, 2017
Merged

scan assignment value in drop_unused()#1578
alexlamsl merged 1 commit intomishoo:masterfrom
alexlamsl:unused-value

Conversation

@alexlamsl
Copy link
Copy Markdown
Collaborator

#1576 (comment)

So this covers more than just missed opportunity for !keep_fnames in named functions as assigned values, and it's also less lines than before.

@kzc included your doc changes from #1577, and thanks for pointing out the inefficiency in the previous PR 😉

those were not optimised for `unused` before, which made it necessary for `reduce_vars` to have separate steps for `keep_fnames`

docs update by @kzc

closes mishoo#1577
@kzc
Copy link
Copy Markdown
Contributor

kzc commented Mar 8, 2017

Thanks. LGTM.

@alexlamsl alexlamsl merged commit 711f88d into mishoo:master Mar 8, 2017
@alexlamsl alexlamsl deleted the unused-value branch March 8, 2017 10:37
@alexlamsl alexlamsl mentioned this pull request Mar 8, 2017
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this pull request Mar 8, 2017
similar case as mishoo#1578 but against mishoo#1450 instead

closes mishoo#1580
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this pull request Mar 8, 2017
- similar case as mishoo#1578 but against mishoo#1450 instead
- fix `this` binding in mishoo#1450 as well

closes mishoo#1580
alexlamsl added a commit that referenced this pull request Mar 8, 2017
- similar case as #1578 but against #1450 instead
- fix `this` binding in #1450 as well

closes #1580
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.

2 participants