Skip to content

Commit 2015e6c

Browse files
committed
CR: bugs
1 parent 1ec1bd3 commit 2015e6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dune_rules/jsoo/jsoo_rules.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ end = struct
162162
in
163163
List.filter_opt
164164
[ of_bool_opt "use-js-string" t.js_string
165-
; Option.map t.effects ~f:string_of_effects
165+
; Option.map t.effects ~f:(fun e -> "effects=" ^ string_of_effects e)
166166
; of_bool_opt "toplevel" t.toplevel
167167
]
168168
|> String.concat ~sep:"+")
169169
;;
170170

171171
let effects_of_string = function
172172
| "cps" -> Some Cps
173-
| "double-translation" -> Some Cps
173+
| "double-translation" -> Some Double_translation
174174
| _ -> None
175175
;;
176176

@@ -186,7 +186,7 @@ end = struct
186186
| None, None -> set acc name `True
187187
| None, Some backend ->
188188
(match effects_of_string backend with
189-
| Some backend -> set acc name (`Effects backend)
189+
| Some backend -> set acc "effects" (`Effects backend)
190190
| None -> acc))
191191
;;
192192

0 commit comments

Comments
 (0)