diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index a3baa7b1..4e967aef 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4453,7 +4453,7 @@ merge(Compressor.prototype, { var ev = value.is_truthy() || value.tail_node().evaluate(compressor); if (!ev) { value = value.drop_side_effect_free(compressor); - if (node.value !== value) node.value = value ? make_sequence(node.value, [ + node.value = value ? make_sequence(node.value, [ value, make_node(AST_Number, node.value, { value: 0 @@ -4461,7 +4461,7 @@ merge(Compressor.prototype, { ]) : null; } else if (ev && !(ev instanceof AST_Node)) { value = value.drop_side_effect_free(compressor); - if (node.value !== value) node.value = value ? make_sequence(node.value, [ + node.value = value ? make_sequence(node.value, [ value, make_node(AST_Number, node.value, { value: 1 |