Fixes
-
#2495 (merged 2026-10-07):
inline_recursivelyno longer duplicates a closure at every nested-functor level. The fiat-crypto benchmark, which previously exhausted memory, compiles again in ~42 s / 1.4 GB. -
#2492 (merged 2026-10-05):
Str.string_partial_matchno longer allows a group's start to exceed its end (OSEC-2026-21). The JS runtime also stops the matcher on a partial match instead of looping until heap exhaustion. -
#2504 (merged 2026-10-09): The Wasm linker fixes instruction decoding (legacy exceptions, SIMD immediates,
memory.atomic.fence, stack switching), segment/table retargeting, continuation-type equality, and export ordering. -
#2499 (merged 2026-10-08):
Array.make,Float.Array.create,Array.append/concat,Obj.new_block,Weak.create, and unmarshaling now enforceMax_wosizeand raise the same exceptions as OCaml, instead of trapping or silently succeeding on oversized allocations.
Features
-
#2493 (merged 2026-10-05): The JS and Wasm runtimes implement
Sys.filepath_exists(OCaml 5.6), returningfalseonly on ENOENT/ENOTDIR and raisingSys_errorotherwise. -
#2423 (open): A new
Split_toplevelpass outlines the Wasm toplevel function at liveness boundaries, controlled by thesplit-toplevelflag andtoplevel_split_sizeparameter, to keep JIT compilers from stalling on a single huge function.
Compatibility
-
#2494 (merged 2026-10-09): With OCaml 5.6,
EQ/NEQcarryingHint_int_equality_testcompile to a plainref.eqin Wasm without boxing, removing unnecessarycaml_js_strict_equalscalls. -
#2502 (merged 2026-10-09): The JS backend no longer emits ES2021 logical-assignment operators (
&&=,||=,??=) and preserves blocks around a single block-scoped declaration, restoring compatibility with older engines.