@@ -3745,14 +3745,17 @@ Compressor.prototype.compress = function(node) {
|
||||
return true;
|
||||
}
|
||||
if (!(ab instanceof AST_LoopControl)) return false;
|
||||
if (jump && self instanceof AST_SwitchBranch) {
|
||||
if (self instanceof AST_SwitchBranch) {
|
||||
if (jump instanceof AST_Exit) {
|
||||
if (!in_lambda) return false;
|
||||
if (jump.value) return false;
|
||||
} else if (compressor.loopcontrol_target(jump) !== parent) {
|
||||
merge_jump = true;
|
||||
} else if (jump) {
|
||||
if (compressor.loopcontrol_target(jump) !== parent) return false;
|
||||
merge_jump = true;
|
||||
} else if (jump === false) {
|
||||
return false;
|
||||
}
|
||||
merge_jump = true;
|
||||
}
|
||||
var lct = compressor.loopcontrol_target(ab);
|
||||
if (ab instanceof AST_Continue) return match_target(loop_body(lct));
|
||||
@@ -3789,7 +3792,7 @@ Compressor.prototype.compress = function(node) {
|
||||
end = statements.lastIndexOf(stop);
|
||||
} else {
|
||||
stop = statements[end];
|
||||
if (stop !== jump) jump = null;
|
||||
if (stop !== jump) jump = false;
|
||||
}
|
||||
var tail = statements.splice(start, end - start).filter(function(stat) {
|
||||
if (stat instanceof AST_LambdaDefinition) {
|
||||
|
||||
Reference in New Issue
Block a user