Skip to content

Commit

Permalink
Fix WASM build
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 4, 2024
1 parent 2c05a3d commit 3d5de6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wasm/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3d5de6a

Please sign in to comment.