diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-03-24 19:31:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 19:31:17 +0800 |
commit | ac51d4c5a079dccbc9a6cf69d06f757432c69694 (patch) | |
tree | 5f121ca645f1704ae3c3190249c04479cbd6e0a5 /lib/output.js | |
parent | 0432a7abb98f3aec871daa88331aa9223979dde3 (diff) | |
download | tracifyjs-ac51d4c5a079dccbc9a6cf69d06f757432c69694.tar.gz tracifyjs-ac51d4c5a079dccbc9a6cf69d06f757432c69694.zip |
fix corner case in `AST_For.init` (#1652)
Enforce `null` as value for empty initialisation blocks.
fixes #1648
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 767abd4d..c0f10523 100644 --- a/lib/output.js +++ b/lib/output.js @@ -799,7 +799,7 @@ function OutputStream(options) { output.print("for"); output.space(); output.with_parens(function(){ - if (self.init && !(self.init instanceof AST_EmptyStatement)) { + if (self.init) { if (self.init instanceof AST_Definitions) { self.init.print(output); } else { |