As far as I can tell, OCaml has a GC and WASM (at the moment) doesn't so this seems like the only viable solution to me.