rspivak/slimit — pull request #45 by harig (2013-03-26 06:58:21+00:00)
Title: Fix syntax error in the output of for statement with some form of expressions

The semi-colon in the initialiser part of the following for statements
were missing in the .to_ecma() output :

for(Q||(Q=[]);d> (foo ? 32 : 43) && 54;21;){ a = c;}
for(/^.+/g;cond();++z){ev();}
for((new Number("32"));f;g){}

Fixed by looking for the various AST classes so as to add a
semi-colon or not. Tests added.