Skip to content

Commit f0a1651

Browse files
committed
gen_js_api 1.1.* tests are not compatible with latest js_of_ocaml
Fails with ``` -let (_ : string of_js) = Ojs.string_of_js -let (_ : string to_js) = Ojs.string_to_js -let (_ : int of_js) = Ojs.int_of_js -let (_ : int to_js) = Ojs.int_to_js -let (_ : bool of_js) = Ojs.bool_of_js -let (_ : bool to_js) = Ojs.bool_to_js -let (_ : float of_js) = Ojs.float_of_js -let (_ : float to_js) = Ojs.float_to_js -let (_ : Ojs.t of_js) = fun (x9 : Ojs.t) -> x9 -let (_ : Ojs.t to_js) = fun (x10 : Ojs.t) -> x10 -let (_ : (string * int) of_js) = +let _ = Ojs.string_of_js +let _ = Ojs.string_to_js +let _ = Ojs.int_of_js +let _ = Ojs.int_to_js +let _ = Ojs.bool_of_js +let _ = Ojs.bool_to_js +let _ = Ojs.float_of_js +let _ = Ojs.float_to_js +let _ = fun (x9 : Ojs.t) -> x9 +let _ = fun (x10 : Ojs.t) -> x10 +let _ = fun (x11 : Ojs.t) -> let x12 = x11 in ((Ojs.string_of_js (Ojs.array_get x12 0)), (Ojs.int_of_js (Ojs.array_get x12 1))) -let (_ : (string * int) to_js) = +let _ = fun (x13 : (string * int)) -> let (x14, x15) = x13 in let x16 = Ojs.array_make 2 in Ojs.array_set x16 0 (Ojs.string_to_js x14); Ojs.array_set x16 1 (Ojs.int_to_js x15); x16 ``` Signed-off-by: Marcello Seri <[email protected]>
1 parent 64169c3 commit f0a1651

File tree

6 files changed

+6
-6
lines changed
  • packages/gen_js_api
    • gen_js_api.1.1.0
    • gen_js_api.1.1.1
    • gen_js_api.1.1.2
    • gen_js_api.1.1.3
    • gen_js_api.1.1.4
    • gen_js_api.1.1.5

6 files changed

+6
-6
lines changed

packages/gen_js_api/gen_js_api.1.1.0/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ depends: [
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.22" & < "0.36"} | ("ocaml" {< "5.3"} & "ppxlib" {>= "0.36"})
2525
"ppxlib" {with-test & < "0.26.0"}
26-
"js_of_ocaml-compiler" {with-test}
26+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2727
"conf-npm" {with-test}
2828
"ojs" {= "1.1.0"}
2929
"odoc" {with-doc}

packages/gen_js_api/gen_js_api.1.1.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ depends: [
2222
"dune" {>= "2.7"}
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.26" & < "0.36"} | ("ocaml" {< "5.3"} & "ppxlib" {>= "0.36"})
25-
"js_of_ocaml-compiler" {with-test}
25+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2626
"conf-npm" {with-test}
2727
"ojs" {= "1.1.1"}
2828
"odoc" {with-doc}

packages/gen_js_api/gen_js_api.1.1.2/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ depends: [
2222
"dune" {>= "2.7"}
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.26" & < "0.36"} | ("ocaml" {< "5.3"} & "ppxlib" {>= "0.36"})
25-
"js_of_ocaml-compiler" {with-test}
25+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2626
"conf-npm" {with-test}
2727
"ojs" {= version}
2828
"odoc" {with-doc}

packages/gen_js_api/gen_js_api.1.1.3/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ depends: [
2222
"dune" {>= "2.7"}
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.26" & < "0.36"} | ("ocaml" {< "5.3"} & "ppxlib" {>= "0.36"})
25-
"js_of_ocaml-compiler" {with-test}
25+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2626
"conf-npm" {with-test}
2727
"ojs" {= version}
2828
"odoc" {with-doc}

packages/gen_js_api/gen_js_api.1.1.4/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ depends: [
2222
"dune" {>= "3.0"}
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.26" & < "0.36"} | ("ocaml" {< "5.3"} & "ppxlib" {>= "0.36"})
25-
"js_of_ocaml-compiler" {with-test}
25+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2626
"ojs" {= version}
2727
"odoc" {with-doc}
2828
]

packages/gen_js_api/gen_js_api.1.1.5/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ depends: [
2222
"dune" {>= "3.0"}
2323
"ocaml" {>= "4.08"}
2424
"ppxlib" {>= "0.26"}
25-
"js_of_ocaml-compiler" {with-test}
25+
"js_of_ocaml-compiler" {with-test & < "6.1.1"}
2626
"ojs" {= version}
2727
"odoc" {with-doc}
2828
]

0 commit comments

Comments
 (0)