Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Dec 23, 2024
1 parent 7066f6b commit 0eeaafe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/lib/js_output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,7 @@ let program ?(accept_unnamed_var = false) ?(source_map = false) f p =
PP.set_needed_space_function f need_space;
(match Config.effects () with
| `Cps | `Double_translation -> PP.set_adjust_indentation_function f (fun n -> n mod 40)
| `Disabled | `Jspi | exception Failure _ -> ());
| `Disabled | `Jspi | (exception Failure _) -> ());
PP.start_group f 0;
O.program f p;
PP.end_group f;
Expand Down
4 changes: 1 addition & 3 deletions compiler/tests-compiler/lambda_lifting.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Printf.printf "%d\n" (f 3)
in
Util.compile_and_run ~effects:`Cps ~flags prog;
[%expect {|15 |}];
let program =
Util.compile_and_parse ~effects:`Cps ~flags prog
in
let program = Util.compile_and_parse ~effects:`Cps ~flags prog in
Util.print_program program;
[%expect
{|
Expand Down
3 changes: 1 addition & 2 deletions compiler/tests-compiler/util/util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ let compile_to_javascript
[ (if pretty then [ "--pretty" ] else [])
; (if sourcemap then [ "--sourcemap" ] else [])
; (match effects with
| `Double_translation ->
[ "--effects=double-translation" ]
| `Double_translation -> [ "--effects=double-translation" ]
| `Cps -> [ "--effects=cps" ]
| `Disabled -> [])
; (if use_js_string
Expand Down

0 comments on commit 0eeaafe

Please sign in to comment.