@@ -3620,7 +3620,7 @@ Compressor.prototype.compress = function(node) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (jump && jump === next) eliminate_returns(stat);
|
||||
if (declare_only && jump && jump === next) eliminate_returns(stat);
|
||||
}
|
||||
return changed;
|
||||
|
||||
@@ -3787,6 +3787,7 @@ Compressor.prototype.compress = function(node) {
|
||||
if (stat instanceof AST_Exit) {
|
||||
var mode = match_return(stat, true);
|
||||
if (mode) {
|
||||
changed = true;
|
||||
var value = trim_return(stat.value, mode);
|
||||
if (value) return make_node(AST_SimpleStatement, value, { body: value });
|
||||
return in_block ? null : make_node(AST_EmptyStatement, stat);
|
||||
|
||||
Reference in New Issue
Block a user