diff --git a/README.md b/README.md index 9e49456f71..a52ac2582c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,11 @@ See [opam](https://github.com/ocsigen/js_of_ocaml/blob/master/js_of_ocaml-compiler.opam) file for version constraints. +## Supported engines + +The generated code works with Node.js 16 or any recent web-browser compatible with ECMAScript 6. +We optionally rely on js `WeakRef`, which is part of ECMAScript 2021, to implement `Stdlib.Weak` and `Stdlib.Ephemeron`. + ### Toplevel requirements - tyxml, reactiveData diff --git a/README_wasm_of_ocaml.md b/README_wasm_of_ocaml.md index ee5c69df18..256ff4045b 100644 --- a/README_wasm_of_ocaml.md +++ b/README_wasm_of_ocaml.md @@ -4,7 +4,7 @@ Wasm_of_ocaml is a fork of Js_of_ocaml which compiles OCaml bytecode to WebAssem ## Supported engines -The generated code works with Chrome 11.9, Node.js 22 and Firefox 122 (or more recent versions of these applications). +The generated code works with Chrome 119, Node.js 22 and Firefox 122 (or more recent versions of these applications). In particular, the output code requires the following [Wasm extensions](https://webassembly.org/roadmap/) to run: - [the GC extension](https://github.com/WebAssembly/gc), including functional references and 31-bit integers