Skip to content

Commit 2374f0b

Browse files
committed
The async keyword should not be followed by a newline
Fixes #1514
1 parent 2d765db commit 2374f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/lib/js_output.ml

Lines changed: 1 addition & 1 deletion
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;

0 commit comments

Comments
 (0)