Yeah, missing primitives are the issue when using Core
with js_of_ocaml
. There is core_kernel
library. It is a subset of Core
which contains basic functions. UNIX-related functions from core
are not included to Core_kernel
. If I remember correctly, the main reason for extracting Core_kernel
from Core
is your issue.
Update.
I have failed. It seems that developers have tried to allow using Core_kernel
with js_of_ocaml but without success. It seems that you can't do it now. They are waiting for OCaml namespaces.