fix corner cases in if_return (#5585)
fixes #5583 fixes #5584 fixes #5586
This commit is contained in:
@@ -466,7 +466,7 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
|
||||
}
|
||||
}
|
||||
else if (node instanceof U.AST_VarDef) {
|
||||
if (node.value) {
|
||||
if (node.value && !(parent instanceof U.AST_Const)) {
|
||||
node.start._permute++;
|
||||
CHANGED = true;
|
||||
return new U.AST_VarDef({
|
||||
|
||||
Reference in New Issue
Block a user