Browse Source

Ensure semicolon is inserted after package declaration.

var js = {}; <--

for package js;
Luca Deltodesco 12 years ago
parent
commit
0d8b37b2e1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      genjs.ml

+ 1 - 0
genjs.ml

@@ -862,6 +862,7 @@ let generate_package_create ctx (p,_) =
 				else
 					print ctx "if(!%s) %s = {}" p p
 			);
+			ctx.separator <- true;
 			newline ctx;
 			loop (p :: acc) l
 	in