Browse Source

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

Class.prototype = {
    ..
}; <--
Luca Deltodesco 12 years ago
parent
commit
ac81a9a5c0
1 changed files with 1 additions and 1 deletions
  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