if present, the `else` in an `if` should always be forced statement
authorMihai Bazon <mihai@bazon.net>
Tue, 4 Sep 2012 10:17:13 +0000 (13:17 +0300)
committerMihai Bazon <mihai@bazon.net>
Tue, 4 Sep 2012 10:17:13 +0000 (13:17 +0300)
lib/output.js

index 98bc983..e5c1c26 100644 (file)
@@ -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);
         }