diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index db6a26d6..4152bd06 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2746,7 +2746,7 @@ merge(Compressor.prototype, { if (consequent.is_constant(compressor) && alternative.is_constant(compressor) && consequent.equivalent_to(alternative)) { - var consequent_value = consequent.constant_value(); + var consequent_value = consequent.constant_value(compressor); if (self.condition.has_side_effects(compressor)) { return AST_Seq.from_array([self.condition, make_node_from_constant(compressor, consequent_value, self)]); } else { |