//Provides: caml_unix_times function caml_unix_times() { return 4.2 } //Provides: ml_merlin_fs_exact_case_basename function ml_merlin_fs_exact_case_basename(str) { return 0 } //Provides: ml_merlin_fs_exact_case function ml_merlin_fs_exact_case(str) { return str } //Provides: stub_sha512_init function stub_sha512_init() { return 0 } //Provides: caml_thread_initialize function caml_thread_initialize() { return 0 } //Provides: caml_sys_const_arch_amd64 const function caml_sys_const_arch_amd64() { return 1 } //Provides: caml_sys_const_arch_arm64 const function caml_sys_const_arch_arm64() { return 0 } // OxCaml compiler-libs references caml_make_local_vect but base (which provides // it) is not a transitive dependency, so we need our own stub. //Provides: caml_make_local_vect //Requires: caml_make_vect function caml_make_local_vect(len, init) { return caml_make_vect(len, init); } // OxCaml domain TLS - single-domain JS environment, just use a shared object //Provides: jtw_tls_state var jtw_tls_state = { value: 0 }; //Provides: caml_domain_tls_get //Requires: jtw_tls_state function caml_domain_tls_get() { return jtw_tls_state.value; } //Provides: caml_domain_tls_set //Requires: jtw_tls_state function caml_domain_tls_set(v) { jtw_tls_state.value = v; return 0; }