Skip to content

Commit dbcf6a2

Browse files
committed
Misc: OCaml 5.3 support
1 parent e3429e5 commit dbcf6a2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@
5454
* Compiler: more inlining - duplicate small function.
5555
* Compiler: Make it possible to link runtime JavaScript file
5656
together with OCaml libraries #1509
57+
* Compiler: initial support for OCaml 5.3
5758
* Runtime: abort instead of exit when calling unimplemented
5859
js primitives in bytecode/native. It should help if one tries
5960
to understand the source of the call with gdb (see #677)
6061
* Runtime: re-enable marshalling of floats, disabled in jsoo 2.0
6162
* Runtime: new runtime api for channels
6263

64+
6365
## Bug fixes
6466

6567
* Compiler: fix variable renaming for property binding and assignment target

compiler/tests-compiler/gh747.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ let max_array_length = max_wosize ()
141141
let max_floatarray_length = max_array_length / (64 / word_size)
142142
let max_string_length = word_size / 8 * max_array_length - 1
143143

144-
type 'a effect
145-
type exn += Unhandled: 'a effect -> exn
144+
type 'a effect_
145+
type exn += Unhandled: 'a effect_ -> exn
146146

147147
type backtrace_slot =
148148
| Known_location of {

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
(description
1919
"Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
2020
(depends
21-
(ocaml (and (>= 4.08) (< 5.3)))
21+
(ocaml (and (>= 4.08) (< 5.4)))
2222
(num :with-test)
2323
(ppx_expect (and (>= v0.14.2) :with-test))
2424
(ppxlib (>= 0.15.0))

js_of_ocaml-compiler.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
1313
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
1414
depends: [
1515
"dune" {>= "3.7"}
16-
"ocaml" {>= "4.08" & < "5.3"}
16+
"ocaml" {>= "4.08" & < "5.4"}
1717
"num" {with-test}
1818
"ppx_expect" {>= "v0.14.2" & with-test}
1919
"ppxlib" {>= "0.15.0"}

0 commit comments

Comments
 (0)