We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 506cc16 commit 8a9f5e5Copy full SHA for 8a9f5e5
jscomp/core/js_dump.ml
@@ -408,9 +408,9 @@ and pp_function ~return_unit ~async ~is_method ~need_paren ?directive cxt (f : P
408
return_sp f;
409
P.string f (L.function_ ~async ~arrow);
410
param_body ()
411
- | No_name { single_arg } ->
+ | No_name _ ->
412
(* see # 1692, add a paren for annoymous function for safety *)
413
- P.cond_paren_group f (need_paren && not single_arg) (fun _ ->
+ P.cond_paren_group f (need_paren) (fun _ ->
414
415
param_body ())
416
| Name_non_top x ->
0 commit comments