Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W18.2026 · 27 Apr – 3 Mayocsigen/js_of_ocaml

Features

  • js_of_ocaml (QuickJS-NG): Open PR adds a quickjs dune profile and runtime shim so unmodified jsoo output runs on QuickJS-NG without Node globals. Stacked on the Babel-downlevel and inliner-fix PRs. #2229
  • js_of_ocaml (OCaml 5.6): Open PR by vouillon adds initial compiler and runtime support for OCaml 5.6. #2227
  • js_of_ocaml (target-env): Open feature request proposes a --target-env=neutral option for JS runtimes that are neither browser nor Node (e.g. QuickJS), avoiding the current need to pass --target-env=browser. #2226
  • js_of_ocaml (Dom bindings): Open PR corrects three type signatures to match runtime behaviour: inputElement.defaultChecked becomes bool, createVideo return type fixed to videoElement, and selection.collapse signature updated. #2221

Fixes

  • js_of_ocaml (compiler): Merged fix removes Plus from the commutative-operator list in the peephole pass, preventing x = e + x from being rewritten as x += e under use-js-string. Previously produced reversed string concatenation (e.g. Filename.temp_file paths). #2228
  • js_of_ocaml (Wasm): Merged fix guards Int64.of_string against inputs like "+", "-", "0x" that previously trapped on an out-of-bounds array access instead of raising Failure. #2223

Compatibility and Releases

  • js_of_ocaml (Wasm, OCaml 5.5): Merged PR embeds .cmi files in separate-compilation .wasmo bundles and stubs caml_dynlink_parse_ld_conf, completing OCaml 5.5 support for the Wasm backend. #2220
  • js_of_ocaml (browser compat docs): Open PR adds a manual chapter documenting the Babel + core-js + esbuild pipeline for downleveling jsoo output (ES2020) to older browsers, with an opt-in CI test. #2216