Skip to content

Commit

Permalink
The async keyword should not be followed by a newline
Browse files Browse the repository at this point in the history
Fixes #1514
  • Loading branch information
vouillon committed Oct 3, 2023
1 parent 2d765db commit d2a3609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/lib/js_output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ struct
(match k with
| { async = true; generator = false } ->
PP.string f "async";
PP.space f
PP.non_breaking_space f
| { async = false; generator = false } -> ()
| { async = true | false; generator = true } -> assert false);
PP.break f;
Expand Down Expand Up @@ -882,7 +882,7 @@ struct
PP.space f
| { async = true; generator = false } ->
PP.string f "async";
PP.space f
PP.non_breaking_space f
| { async = true; generator = true } ->
PP.string f "async*";
PP.space f);
Expand Down

0 comments on commit d2a3609

Please sign in to comment.