diff options
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output.js b/lib/output.js index 7077d6dd..70bd74be 100644 --- a/lib/output.js +++ b/lib/output.js @@ -990,7 +990,7 @@ function OutputStream(options) { /* -----[ if ]----- */ function make_then(self, output) { var b = self.body; - if (output.option("braces") + if (output.option("braces") && !(b instanceof AST_Const) || output.option("ie8") && b instanceof AST_Do) return make_block(b, output); // The squeezer replaces "block"-s that contain only a single @@ -1381,7 +1381,7 @@ function OutputStream(options) { }); function force_statement(stat, output) { - if (output.option("braces")) { + if (output.option("braces") && !(stat instanceof AST_Const)) { make_block(stat, output); } else if (!stat || stat instanceof AST_EmptyStatement) { output.force_semicolon(); |