@@ -9469,16 +9469,12 @@ Compressor.prototype.compress = function(node) {
|
||||
if (self.bfinally) {
|
||||
body.push(make_node(AST_BlockStatement, self.bfinally, self.bfinally).optimize(compressor));
|
||||
}
|
||||
return make_node(AST_BlockStatement, self, {
|
||||
body: body
|
||||
}).optimize(compressor);
|
||||
return make_node(AST_BlockStatement, self, { body: body }).optimize(compressor);
|
||||
}
|
||||
if (self.bfinally && has_declarations_only(self.bfinally)) {
|
||||
var body = make_node(AST_BlockStatement, self.bfinally, self.bfinally).optimize(compressor);
|
||||
body = self.body.concat(body);
|
||||
if (!self.bcatch) return make_node(AST_BlockStatement, self, {
|
||||
body: body
|
||||
}).optimize(compressor);
|
||||
if (!self.bcatch) return make_node(AST_BlockStatement, self, { body: body }).optimize(compressor);
|
||||
self.body = body;
|
||||
self.bfinally = null;
|
||||
}
|
||||
@@ -13174,6 +13170,7 @@ Compressor.prototype.compress = function(node) {
|
||||
if (fn.contains_this()) return;
|
||||
if (!scope) scope = find_scope(compressor);
|
||||
var defined = new Dictionary();
|
||||
defined.set("NaN", true);
|
||||
while (!(scope instanceof AST_Scope)) {
|
||||
scope.variables.each(function(def) {
|
||||
defined.set(def.name, true);
|
||||
@@ -13263,13 +13260,6 @@ Compressor.prototype.compress = function(node) {
|
||||
if (sym instanceof AST_SymbolCatch) return;
|
||||
body.push(make_node(AST_SimpleStatement, sym, { body: init_ref(compressor, flatten_var(sym)) }));
|
||||
});
|
||||
if (fn.variables.has("NaN")) scope.transform(new TreeTransformer(function(node) {
|
||||
if (node instanceof AST_NaN) return make_node(AST_Binary, node, {
|
||||
operator: "/",
|
||||
left: make_node(AST_Number, node, { value: 0 }),
|
||||
right: make_node(AST_Number, node, { value: 0 }),
|
||||
});
|
||||
}));
|
||||
var defs = Object.create(null), syms = new Dictionary();
|
||||
if (simple_argnames && all(call.args, function(arg) {
|
||||
return !(arg instanceof AST_Spread);
|
||||
|
||||
Reference in New Issue
Block a user