Skip to content

Commit 8a9f5e5

Browse files
committed
fix cond
1 parent 506cc16 commit 8a9f5e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/core/js_dump.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ and pp_function ~return_unit ~async ~is_method ~need_paren ?directive cxt (f : P
408408
return_sp f;
409409
P.string f (L.function_ ~async ~arrow);
410410
param_body ()
411-
| No_name { single_arg } ->
411+
| No_name _ ->
412412
(* see # 1692, add a paren for annoymous function for safety *)
413-
P.cond_paren_group f (need_paren && not single_arg) (fun _ ->
413+
P.cond_paren_group f (need_paren) (fun _ ->
414414
P.string f (L.function_ ~async ~arrow);
415415
param_body ())
416416
| Name_non_top x ->

0 commit comments

Comments
 (0)