-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
[BUG] Fatal logic error when modify function argument by function define statement. #369
Comments
Thank you very much for your report and the test! Does this occur even if you specify different variable names for the argument |
@fabiosantoscode Yes, in my test file the argument name is |
I'm not sure if I got a misunderstanding. The bug is, if you assign the argument by define function statement, |
Got it. This is low priority as I don't see too many people creating functions that are the same name as variables which already exist. |
Yep, I also think nobody will code like this. |
@fabiosantoscode lodash is one of the most popular libraries. Similar problem with collapse_vars. |
Bug report or Feature request?
Bug report.
Version (complete output of
terser -V
or specific git commit)terser 4.0.0
Complete CLI command or
minify()
options usedterser
inputterser
output or errorExpected result
or
or
Link
https://github.com/tinymins/terser/blob/issue-369/test/compress/issue-369.js
https://github.com/tinymins/terser/blob/issue-369/lib/compress/index.js#L1394
The text was updated successfully, but these errors were encountered: