[Pkg-javascript-commits] [uglifyjs] 18/28: Check for the case an AST_For's init is an EmptyStatement

Jonas Smedegaard dr at jones.dk
Thu Oct 16 11:57:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository uglifyjs.

commit ac2caf10889516d9350f1ef8ad402cdea80a7deb
Author: Mihai Bazon <mihai at bazon.net>
Date:   Tue Jul 1 23:10:44 2014 +0300

    Check for the case an AST_For's init is an EmptyStatement
    
    (lame fix for #503)
---
 lib/output.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/output.js b/lib/output.js
index b963792..6c8f15a 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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list