We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 report or feature request?
Bug report
ES5 or ES6+ input?
ES5
Uglify version (uglifyjs -V)
uglifyjs -V
uglify-js 3.0.28
JavaScript input
function foo(o) { var a = o.a; if (a) { return a; } else { var a = 1; } }
The uglifyjs CLI command executed or minify() options used.
uglifyjs
minify()
uglify in.js -c hoist_vars=true -o out.js
JavaScript output or error produced.
function foo(o){if(a=o.a)return a;a=1}
a is undefined.
a
The text was updated successfully, but these errors were encountered:
@kevinptt0323 thanks for the clear & concise report - fix is on the way 👍
Sorry, something went wrong.
correctly count declarations after hoist_vars
hoist_vars
a122954
fixes mishoo#2295
correctly count declarations after hoist_vars (#2297)
3f35586
fixes #2295
Successfully merging a pull request may close this issue.
Bug report or feature request?
Bug report
ES5 or ES6+ input?
ES5
Uglify version (
uglifyjs -V
)uglify-js 3.0.28
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.uglify in.js -c hoist_vars=true -o out.js
JavaScript output or error produced.
a
is undefined.The text was updated successfully, but these errors were encountered: