Browse Source

Don't avoid a semicolon after static field gen.

class Main {
    static function main() {}
}

generated

Main.main = function () {
}

instead of

Main.main = function () {
};

(Another JSHint error)
Luca Deltodesco 12 years ago
parent
commit
c7c730d374
1 changed files with 0 additions and 1 deletions
  1. 0 1
      genjs.ml

+ 0 - 1
genjs.ml

@@ -883,7 +883,6 @@ let gen_class_static_field ctx c f =
 			ctx.id_counter <- 0;
 			ctx.id_counter <- 0;
 			print ctx "%s = " path;
 			print ctx "%s = " path;
 			gen_value ctx e;
 			gen_value ctx e;
-			ctx.separator <- false;
 			newline ctx;
 			newline ctx;
 			handle_expose ctx path f.cf_meta
 			handle_expose ctx path f.cf_meta
 		| _ ->
 		| _ ->