Skip to content

Commit

Permalink
Improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 4, 2024
1 parent 081c5cd commit 756301b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions compiler/lib/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,12 @@ let eval_instr info ~target ((x, loc) as i) =
| None -> [ i ])
| Let (x, Prim (Extern "caml_sys_const_backend_type", [ _ ])) ->
let jsoo = Code.Var.fresh () in
[ ( Let
( jsoo
, Constant
(String
(match target with
| `JavaScript -> "js_of_ocaml"
| `Wasm -> "wasm_of_ocaml")) )
, noloc )
let backend_name =
match target with
| `JavaScript -> "js_of_ocaml"
| `Wasm -> "wasm_of_ocaml"
in
[ Let (jsoo, Constant (String backend_name)), noloc
; Let (x, Block (0, [| jsoo |], NotArray, Immutable)), loc
]
| Let (_, Prim (Extern ("%resume" | "%perform" | "%reperform"), _)) ->
Expand Down

0 comments on commit 756301b

Please sign in to comment.