From 3d5de6a79c560dc8b009071ac017c92d994e53c6 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 3 Nov 2024 20:41:20 -0800 Subject: [PATCH] Fix WASM build --- wasm/index.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wasm/index.mjs b/wasm/index.mjs index fd40394..5daf503 100644 --- a/wasm/index.mjs +++ b/wasm/index.mjs @@ -186,12 +186,14 @@ const wasm_env = { clear_timeout(t) { clearTimeout(t); }, + _setitimer_js() {}, emscripten_date_now() { return Date.now(); }, _emscripten_get_now_is_monotonic() { return true; }, + _emscripten_runtime_keepalive_clear() {}, emscripten_get_now() { return performance.now(); }, @@ -243,7 +245,8 @@ const wasi = { let read = fs.readvSync(fd, buffers); env.u32[pnum >> 2] = read; return 0; - } + }, + proc_exit() {} }; function writeStat(stat, buf) {