Skip to content

Commit 6eed02e

Browse files
committed
CR
Signed-off-by: Olivier Nicole <[email protected]>
1 parent 721e1da commit 6eed02e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/dune_rules/jsoo/jsoo_rules.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,9 @@ end = struct
225225
else
226226
Some "--enable=effects"
227227
| Some Double_translation ->
228-
if recent then
229-
Some "--effects=double-translation"
230-
else
231-
failwith "--effects=double-translation is not supported before version js_of_ocaml 6.0"
228+
(* For js_of_ocaml < 6.0, this flag does not exist and will raise an error,
229+
which is fine. *)
230+
Some "--effects=double-translation"
232231
;;
233232

234233
let to_flags ~recent t =

0 commit comments

Comments
 (0)