Explorar o código

Ensure class prototype, when not using $extend has semicolon inserted.

Class.prototype = {
    ..
}; <--
Luca Deltodesco %!s(int64=12) %!d(string=hai) anos
pai
achega
ac81a9a5c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -1005,7 +1005,7 @@ let generate_class ctx c =
 
 		bend();
 		print ctx "\n}";
-		(match c.cl_super with None -> () | _ -> print ctx ")");
+		(match c.cl_super with None -> ctx.separator <- true | _ -> print ctx ")");
 		newline ctx
 	end