@@ -2864,7 +2864,7 @@ merge(Compressor.prototype, {
|
|||||||
return this.value.may_throw(compressor);
|
return this.value.may_throw(compressor);
|
||||||
});
|
});
|
||||||
def(AST_Return, function(compressor){
|
def(AST_Return, function(compressor){
|
||||||
return this.value.may_throw(compressor);
|
return this.value && this.value.may_throw(compressor);
|
||||||
});
|
});
|
||||||
def(AST_Sequence, function(compressor){
|
def(AST_Sequence, function(compressor){
|
||||||
return any(this.expressions, compressor);
|
return any(this.expressions, compressor);
|
||||||
|
|||||||
@@ -4642,3 +4642,26 @@ issue_805: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_2931: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
unused: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
console.log(function() {
|
||||||
|
var a = function() {
|
||||||
|
return;
|
||||||
|
}();
|
||||||
|
return a;
|
||||||
|
}());
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
console.log(function() {
|
||||||
|
return function() {
|
||||||
|
return;
|
||||||
|
}();
|
||||||
|
}());
|
||||||
|
}
|
||||||
|
expect_stdout: "undefined"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user