-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Minifying return await
removes await
which produces a different program
#5157
Labels
Comments
Test reformatted to run under NodeJS:
|
Another variation of the bug:
|
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Oct 29, 2021
alexlamsl
added a commit
that referenced
this issue
Oct 29, 2021
Patch released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uglify version 3.14.2
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.Just the default options. This is my whole code:
JavaScript output (beautified) or error produced.
Uglify removes the
await
in thetest
function, which changes the program. The originaltest
function logsFailed Fail
and returns 0 without actually throwing, while the minified version throwsFail
.The text was updated successfully, but these errors were encountered: