@@ -319,10 +319,12 @@ merge(Compressor.prototype, {
|
||||
}),
|
||||
});
|
||||
}
|
||||
if (node instanceof AST_Lambda && node !== self) {
|
||||
return node;
|
||||
}
|
||||
if (node instanceof AST_Block) {
|
||||
if (node instanceof AST_Lambda) {
|
||||
if (node !== self) return node;
|
||||
} else if (insert === "awaits" && node instanceof AST_Try) {
|
||||
if (node.bfinally) return node;
|
||||
}
|
||||
var index = node.body.length - 1;
|
||||
if (index >= 0) {
|
||||
node.body[index] = node.body[index].transform(tt);
|
||||
@@ -7587,7 +7589,7 @@ merge(Compressor.prototype, {
|
||||
});
|
||||
}
|
||||
if (async && compressor.option("awaits")) {
|
||||
if (drop_body) exp.process_expression(true, function(node) {
|
||||
if (drop_body) exp.process_expression("awaits", function(node) {
|
||||
var body = node.body;
|
||||
if (body instanceof AST_Await) {
|
||||
if (is_primitive(compressor, body.expression)) {
|
||||
|
||||
Reference in New Issue
Block a user