diff options
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/output.js b/lib/output.js index b9d8a137..d59176c3 100644 --- a/lib/output.js +++ b/lib/output.js @@ -91,13 +91,11 @@ function OutputStream(options) { comment_filter = function(comment) { return comment.type != "comment5" && comments.test(comment.value); }; - } - else if (typeof comments === "function") { + } else if (typeof comments === "function") { comment_filter = function(comment) { return comment.type != "comment5" && comments(this, comment); }; - } - else if (comments === "some") { + } else if (comments === "some") { comment_filter = is_some_comments; } else { // NOTE includes "all" option comment_filter = return_true; @@ -643,8 +641,7 @@ function OutputStream(options) { var self = this, generator = self._codegen; if (self instanceof AST_Scope) { active_scope = self; - } - else if (!use_asm && self instanceof AST_Directive && self.value == "use asm") { + } else if (!use_asm && self instanceof AST_Directive && self.value == "use asm") { use_asm = active_scope; } function doit() { @@ -1043,11 +1040,9 @@ function OutputStream(options) { return; } b = b.alternative; - } - else if (b instanceof AST_StatementWithBody) { + } else if (b instanceof AST_StatementWithBody) { b = b.body; - } - else break; + } else break; } force_statement(self.body, output); } |