Skip to content

Commit c72436e

Browse files
committed
Compiler: test for do-while with semi-colon auto insertion
1 parent 68f12fb commit c72436e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/tests-compiler/js_parser_printer.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,9 @@ a:while(true){
911911
a = b + c
912912
(d + e).print()
913913

914+
do { x } while (true) y
915+
do ; while (true) y
916+
914917
|};
915918
[%expect
916919
{|

0 commit comments

Comments
 (0)