From 1988495d712c4eeabd89068b4da3420e2e5eb50f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 4 Jan 2020 09:24:28 +0800 Subject: fix corner case in `conditionals` (#3669) fixes #3668 --- lib/compress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/compress.js b/lib/compress.js index fcfe95f7..7e55da5a 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -5114,8 +5114,8 @@ merge(Compressor.prototype, { var exit = make_node(self.body.CTOR, self, { value: make_node(AST_Conditional, self, { condition : self.condition, - consequent : self.body.value || make_node(AST_Undefined, self.body), - alternative : self.alternative.value || make_node(AST_Undefined, self.alternative) + consequent : self.body.value || make_node(AST_Undefined, self.body).transform(compressor), + alternative : self.alternative.value || make_node(AST_Undefined, self.alternative).transform(compressor) }) }); if (exit instanceof AST_Return) { -- cgit v1.2.3