From: Mihai Bazon Date: Tue, 4 Sep 2012 10:17:13 +0000 (+0300) Subject: if present, the `else` in an `if` should always be forced statement X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3459c40cf9d17c6c791a86d387bba85e965c37b6;p=UglifyJS.git if present, the `else` in an `if` should always be forced statement --- diff --git a/lib/output.js b/lib/output.js index 98bc983c..e5c1c26b 100644 --- a/lib/output.js +++ b/lib/output.js @@ -649,7 +649,7 @@ function OutputStream(options) { output.space(); output.print("else"); output.space(); - self.alternative.print(output); + force_statement(self.alternative, output); } else { self._do_print_body(output); }