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
ES5 or ES6+ input?
ES5
Uglify version (uglifyjs -V)
uglifyjs -V
uglify-js 3.3.13
JavaScript input
function test(a){ if(a){ function test2(x){ return a + x; } }else{ function test2(x){ return x; } } return test2(1); }
The uglifyjs CLI command executed or minify() options used.
uglifyjs
minify()
uglifyjs --compress -- ./test.js
JavaScript output or error produced.
function test(a){if(a);else;return 1}
The text was updated successfully, but these errors were encountered:
The example behaves correctly when run on JavaScript platforms, i.e. when not interpreted as ES6+
See #1666.
Sorry, something went wrong.
No branches or pull requests
Bug report or feature request?
Bug
ES5 or ES6+ input?
ES5
Uglify version (
uglifyjs -V
)uglify-js 3.3.13
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.JavaScript output or error produced.
The text was updated successfully, but these errors were encountered: