You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is already mangled from a previous pass, but it is actually the input in this test case.
source-file.js:
functionf(e){const{p3: {p4: o// Note the destructuring of `e` to extract e.p3.p4 and put in `o`}}=e;switch(o){// o is usedcase"X":
consto=this.z;// `o` is overwritten in the local scope (legit in ES)break;}}
The uglifyjs CLI command executed or minify() options used.
Uglify version 3.17.4
JavaScript input
This code is already mangled from a previous pass, but it is actually the input in this test case.
source-file.js
:The
uglifyjs
CLI command executed orminify()
options used.npx uglifyjs --compress --mangle -- source-file.js
JavaScript output or error produced.
Note the empty destructuring, probably the intention was to produce
b
, that is used in theswitch
branch (then correctly optimized with anif
).Thanks, L
The text was updated successfully, but these errors were encountered: