minor clean-ups (#2686)
This commit is contained in:
@@ -3998,7 +3998,7 @@ merge(Compressor.prototype, {
|
|||||||
}
|
}
|
||||||
if (defs) defs.push(arg.definition());
|
if (defs) defs.push(arg.definition());
|
||||||
}
|
}
|
||||||
return !defs || defs.length == 0 || !is_reachable(fn.body[0], defs);
|
return !defs || defs.length == 0 || !is_reachable(stat, defs);
|
||||||
}
|
}
|
||||||
|
|
||||||
function flatten_args(fn) {
|
function flatten_args(fn) {
|
||||||
|
|||||||
@@ -671,9 +671,7 @@ function OutputStream(options) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
PARENS(AST_Node, function(){
|
PARENS(AST_Node, return_false);
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// a function expression needs parens around it when it's provably
|
// a function expression needs parens around it when it's provably
|
||||||
// the first token to appear in a statement.
|
// the first token to appear in a statement.
|
||||||
@@ -699,9 +697,7 @@ function OutputStream(options) {
|
|||||||
|
|
||||||
// same goes for an object literal, because otherwise it would be
|
// same goes for an object literal, because otherwise it would be
|
||||||
// interpreted as a block of code.
|
// interpreted as a block of code.
|
||||||
PARENS(AST_Object, function(output){
|
PARENS(AST_Object, first_in_statement);
|
||||||
return first_in_statement(output);
|
|
||||||
});
|
|
||||||
|
|
||||||
PARENS(AST_Unary, function(output){
|
PARENS(AST_Unary, function(output){
|
||||||
var p = output.parent();
|
var p = output.parent();
|
||||||
|
|||||||
Reference in New Issue
Block a user