Skip to content

Commit 3d5de6a

Browse files
committed
Fix WASM build
1 parent 2c05a3d commit 3d5de6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wasm/index.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,14 @@ const wasm_env = {
186186
clear_timeout(t) {
187187
clearTimeout(t);
188188
},
189+
_setitimer_js() {},
189190
emscripten_date_now() {
190191
return Date.now();
191192
},
192193
_emscripten_get_now_is_monotonic() {
193194
return true;
194195
},
196+
_emscripten_runtime_keepalive_clear() {},
195197
emscripten_get_now() {
196198
return performance.now();
197199
},
@@ -243,7 +245,8 @@ const wasi = {
243245
let read = fs.readvSync(fd, buffers);
244246
env.u32[pnum >> 2] = read;
245247
return 0;
246-
}
248+
},
249+
proc_exit() {}
247250
};
248251

249252
function writeStat(stat, buf) {

0 commit comments

Comments
 (0)