enhance comparisons & reduce_vars (#4841)

This commit is contained in:
Alex Lam S.L
2021-04-03 15:06:05 +01:00
committed by GitHub
parent 0df028187d
commit aed758ed5c
2 changed files with 52 additions and 0 deletions

View File

@@ -9674,6 +9674,7 @@ merge(Compressor.prototype, {
if (node instanceof AST_Sequence) return is_object(node.tail_node());
if (node instanceof AST_SymbolRef) return is_object(node.fixed_value());
return node instanceof AST_Array
|| node instanceof AST_Class
|| node instanceof AST_Lambda
|| node instanceof AST_New
|| node instanceof AST_Object;