aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-20 15:19:19 +0800
committerGitHub <noreply@github.com>2019-10-20 15:19:19 +0800
commit9199ab584667357122637df49eb96919b0a04eb8 (patch)
treeec987b4e53d8bce478636e6f89064e99e5e010f9 /lib/output.js
parentca6dce43feb9d92cb5004c6ee4d5b2e0b4336d93 (diff)
downloadtracifyjs-9199ab584667357122637df49eb96919b0a04eb8.tar.gz
tracifyjs-9199ab584667357122637df49eb96919b0a04eb8.zip
minor tweaks (#3502)
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js15
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);
}