Skip to content

Commit

Permalink
Ensure class prototype, when not using $extend has semicolon inserted.
Browse files Browse the repository at this point in the history
Class.prototype = {
    ..
}; <--
  • Loading branch information
deltaluca committed Oct 10, 2013
1 parent 75e58a9 commit ac81a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genjs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ac81a9a

Please sign in to comment.