Skip to content

Commit

Permalink
fix normalization of AST_Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Jun 6, 2024
1 parent 14cc291 commit cf57d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compress/drop-unused.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ AST_Scope.DEFMETHOD("drop_unused", function(compressor) {
}
},
function after(node, in_list) {
if (node instanceof AST_Sequence && node.expressions.length === 1) {
if (node instanceof AST_Sequence) {
switch (node.expressions.length) {
case 0: return in_list ? MAP.skip : make_node(AST_Number, node, { value: 0 });
case 1: return node.expressions[0];
Expand Down

0 comments on commit cf57d77

Please sign in to comment.