hhugo
hhugo
We now have https://github.com/ocsigen/js_of_ocaml/pull/1265
wip in https://github.com/ocsigen/js_of_ocaml/tree/effects
It is expected and due to https://github.com/ocsigen/js_of_ocaml/blob/d7117ff551015fc27b583fe67f54a61c2950354f/runtime/sys.js#L338. Maybe we should only have that logic turned on for standalone programs.
Contributions are welcome
https://github.com/ocsigen/js_of_ocaml/issues/154
https://github.com/ocsigen/js_of_ocaml/pull/56
The use case is simply to experiment with irmin inside an existing async codebase.
I didn't really look at your issue, but bindings in js_of_ocaml are surely not exhaustive, feel free to open a pull request to fix this.
It seems too easy to silently drop an exceptions. I would rather print the backtrace and exit.
One more PR that might break js_of_ocaml. see comment https://github.com/ocaml/ocaml/pull/14#issuecomment-35822033