Skip to content

Commit

Permalink
CR: bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Nicole <[email protected]>
  • Loading branch information
OlivierNicole committed Dec 20, 2024
1 parent 1ec1bd3 commit 19e12d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dune_rules/jsoo/jsoo_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ end = struct
in
List.filter_opt
[ of_bool_opt "use-js-string" t.js_string
; Option.map t.effects ~f:string_of_effects
; Option.map t.effects ~f:(fun e -> "effects=" ^ string_of_effects e)
; of_bool_opt "toplevel" t.toplevel
]
|> String.concat ~sep:"+")
;;

let effects_of_string = function
| "cps" -> Some Cps
| "double-translation" -> Some Cps
| "double-translation" -> Some Double_translation
| _ -> None
;;

Expand All @@ -186,7 +186,7 @@ end = struct
| None, None -> set acc name `True
| None, Some backend ->
(match effects_of_string backend with
| Some backend -> set acc name (`Effects backend)
| Some backend -> set acc "effects" (`Effects backend)
| None -> acc))
;;

Expand Down

0 comments on commit 19e12d4

Please sign in to comment.