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

minifier: DCE typeof #5628

Closed
Boshen opened this issue Sep 9, 2024 · 0 comments · Fixed by #5666
Closed

minifier: DCE typeof #5628

Boshen opened this issue Sep 9, 2024 · 0 comments · Fixed by #5666
Assignees
Labels
A-minifier Area - Minifier C-enhancement Category - New feature or request

Comments

@Boshen
Copy link
Member

Boshen commented Sep 9, 2024

if (typeof false !== 'boolean') {
  REMOVE;
}
if (typeof 1 !== 'number') {
  REMOVE;
}
if (typeof 1 === 'string') {
  REMOVE;
}
@Boshen Boshen added the C-enhancement Category - New feature or request label Sep 9, 2024
@Boshen Boshen self-assigned this Sep 9, 2024
@DonIsaac DonIsaac added the A-minifier Area - Minifier label Sep 9, 2024
Boshen added a commit that referenced this issue Sep 10, 2024
Boshen added a commit that referenced this issue Sep 10, 2024
@Boshen Boshen closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-minifier Area - Minifier C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants