The new release of jsoo ocaml/opam-repository#26932 breaks picos.thread on ocaml < 5 because it no longer exports a caml_ml_domain_id runtime value on ocaml < 5.
I don't rely understand why picos is build with ocaml 4.
Is it ok to apply the following patch to thread.ocaml4.js ?
//Provides: caml_thread_self
//Requires: caml_ml_domain_id, caml_failwith, caml_thread
function caml_thread_self(unit) {
- if (caml_ml_domain_id(unit) != caml_thread[1])
- caml_failwith('caml_thread_self: spawning of domains is not supported')
return caml_thread
}