aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2014-07-01 23:10:44 +0300
committerMihai Bazon <mihai@bazon.net>2014-07-01 23:10:44 +0300
commitac2caf10889516d9350f1ef8ad402cdea80a7deb (patch)
treeff5fe42635c62858f43ad563de56eb7b6e80e034 /lib/output.js
parent8511e80f489b4b7e3de8122009d492123a314ca8 (diff)
downloadtracifyjs-ac2caf10889516d9350f1ef8ad402cdea80a7deb.tar.gz
tracifyjs-ac2caf10889516d9350f1ef8ad402cdea80a7deb.zip
Check for the case an AST_For's init is an EmptyStatement
(lame fix for #503)
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index b9637929..6c8f15aa 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -656,7 +656,7 @@ function OutputStream(options) {
output.print("for");
output.space();
output.with_parens(function(){
- if (self.init) {
+ if (self.init && !(self.init instanceof AST_EmptyStatement)) {
if (self.init instanceof AST_Definitions) {
self.init.print(output);
} else {