Skip to content

minor clean-ups#1600

Merged
alexlamsl merged 1 commit intomishoo:masterfrom
alexlamsl:cleanup
Mar 14, 2017
Merged

minor clean-ups#1600
alexlamsl merged 1 commit intomishoo:masterfrom
alexlamsl:cleanup

Conversation

@alexlamsl
Copy link
Copy Markdown
Collaborator

Just things that I've discovered whilst working on #1593 which should be minimal and safe. The first part is covered by existing tests that comes with #1427, while the latter is covered by https://github.com/mishoo/UglifyJS2/blob/872270b14986b2f24df406425eda5a3bf7a3b56a/test/mocha/directives.js#L348-L369

- remove obsolete optimisation in `AST_Binary` after mishoo#1477
- improve `TreeWalker.has_directive()` readability and resilience against multiple visits
@alexlamsl alexlamsl merged commit 381bd38 into mishoo:master Mar 14, 2017
@alexlamsl alexlamsl deleted the cleanup branch March 14, 2017 05:19
@alexlamsl alexlamsl mentioned this pull request Mar 17, 2017
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.

1 participant