Skip to content

Commit

Permalink
generated JS: fix indentation of function calls (#1316)
Browse files Browse the repository at this point in the history
* generated JS: fix indent of function calls

* fix: blackbox tests
  • Loading branch information
anmonteiro authored Jan 25, 2025
1 parent e8d4315 commit 8750210
Show file tree
Hide file tree
Showing 56 changed files with 22,069 additions and 22,069 deletions.
4 changes: 2 additions & 2 deletions jscomp/core/js_dump.ml
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ and expression_desc cxt ~(level : int) x : cxt =
let len = List.length el in
if 1 <= len && len <= 8 then (
Curry_gen.pp_app cxt len;
paren_group cxt 1 (fun () -> arguments cxt (e :: el)))
paren_group cxt 0 (fun () -> arguments cxt (e :: el)))
else (
Curry_gen.pp_app_any cxt;
paren_group cxt 1 (fun () ->
paren_group cxt 0 (fun () ->
arguments cxt [ e; E.array Mutable el ]))))
| FlatCall { expr = e; args = el } ->
group cxt 1 (fun () ->
Expand Down
Loading

0 comments on commit 8750210

Please sign in to comment.