Tools covers builds, package management, editors, documentation and JavaScript compilation.
W35.2026 · 24–30 Aug/ocsigen/js_of_ocaml
Features
wasm_of_ocaml gains a --setenv option to set environment variables in the generated WASI runtime. Open PR by vouillon. #2415
Wasm output will emit a sourcemap mapping at the start of each function, improving stack-trace resolution in browser devtools. Open PR by vouillon. #2417
Compatibility and Releases
Merged: The dev CI doc build now runs wodoc --strict-refs, failing on dead intra-manual links or unrendered wiki images. Release builds are unaffected. By balat. #2411
Fixes
Merged: Wasm Node runtime now resolves .wasm assets relative to the runtime file (module.filename) instead of require.main.filename. Programs loaded via require, symlinks, or worker threads no longer crash. By vouillon. #2389
Open: Wasm sourcemap support probe on Windows redirected stderr to /dev/null, which does not exist there, silently disabling sourcemaps. Replaced with Filename.null. By vouillon. #2418
Open: Typed array constructors (Int32Array, Float64Array, etc.) now accept number_t js_array t instead of float js_array t, correcting the OCaml type signature. By vouillon. #2416
Open: OCaml-to-JS string conversion uses TextDecoder with ignoreBOM:true so a leading BOM is preserved rather than stripped. By vouillon. #2414