Skip to content

Commit 4b17dfb

Browse files
vouillonhhugo
authored andcommitted
The async keyword should not be followed by a newline
Fixes #1514
1 parent ce48f23 commit 4b17dfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/lib/js_output.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ struct
444444
(match k with
445445
| { async = true; generator = false } ->
446446
PP.string f "async";
447-
PP.space f
447+
PP.non_breaking_space f
448448
| { async = false; generator = false } -> ()
449449
| { async = true | false; generator = true } -> assert false);
450450
PP.break f;
@@ -882,7 +882,7 @@ struct
882882
PP.space f
883883
| { async = true; generator = false } ->
884884
PP.string f "async";
885-
PP.space f
885+
PP.non_breaking_space f
886886
| { async = true; generator = true } ->
887887
PP.string f "async*";
888888
PP.space f);

0 commit comments

Comments
 (0)