Skip to content

Commit

Permalink
Misc: OCaml 5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 23, 2024
1 parent e3429e5 commit dbcf6a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@
* Compiler: more inlining - duplicate small function.
* Compiler: Make it possible to link runtime JavaScript file
together with OCaml libraries #1509
* Compiler: initial support for OCaml 5.3
* Runtime: abort instead of exit when calling unimplemented
js primitives in bytecode/native. It should help if one tries
to understand the source of the call with gdb (see #677)
* Runtime: re-enable marshalling of floats, disabled in jsoo 2.0
* Runtime: new runtime api for channels


## Bug fixes

* Compiler: fix variable renaming for property binding and assignment target
Expand Down
4 changes: 2 additions & 2 deletions compiler/tests-compiler/gh747.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ let max_array_length = max_wosize ()
let max_floatarray_length = max_array_length / (64 / word_size)
let max_string_length = word_size / 8 * max_array_length - 1

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

type backtrace_slot =
| Known_location of {
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(description
"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")
(depends
(ocaml (and (>= 4.08) (< 5.3)))
(ocaml (and (>= 4.08) (< 5.4)))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.15.0))
Expand Down
2 changes: 1 addition & 1 deletion js_of_ocaml-compiler.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ doc: "https://ocsigen.org/js_of_ocaml/latest/manual/overview"
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
depends: [
"dune" {>= "3.7"}
"ocaml" {>= "4.08" & < "5.3"}
"ocaml" {>= "4.08" & < "5.4"}
"num" {with-test}
"ppx_expect" {>= "v0.14.2" & with-test}
"ppxlib" {>= "0.15.0"}
Expand Down

0 comments on commit dbcf6a2

Please sign in to comment.