Features
- Recursive-descent JavaScript parser (open, by hhugo) replaces the Menhir-based parser. Accepts all valid test262 programs and rejects invalid ones the old parser accepted; reports errors as
unexpected {, expected , or ). - Skip wasm-opt --opt 1 (open, by vouillon). Reduces
wasm_of_ocamltest-suite compilation time by ~60% and preserves variable names for debugging.
Compatibility and Releases
- Block map replaced by a 32-way trie (merged, by hhugo). Compilation of large programs is 10–14% faster; generated code is byte-identical.
Js_traverse.freeis now an iterator, not a mapper (merged, by hhugo). Breaking API change for compiler-library consumers: the class typefreevarinherits fromiterator; the returned program is no longer a copy.
Fixes
- JS syntax errors now report as
file:line:col(merged, by hhugo) with the offending source line. Runtime-file parse errors no longer surface as uncaughtFailureexceptions. - Optional-chain parentheses are preserved in generated code (merged, by hhugo).
(a?.b).cno longer prints asa?.b.c, which changes runtime semantics. - Two
natbugs fixed in both JS and Wasm runtimes (merged, by vouillon): digit comparison treated digits as signed; 64-bit marshalled size was doubled, breaking cross-platform deserialisation. - float32 unsafe get/set primitives gated on
//If: oxcaml(merged, by vouillon). Fixes a compilation failure with OCaml 5.2 caused by an obsolete//OxCamlmarker.