Skip to content

Commit 5b49efb

Browse files
authored
wasm: better wasm fencing
1 parent 369fc5a commit 5b49efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ time_set_timer(PyObject *self, PyObject *args, PyObject *kwargs)
402402

403403
/* do not allow set_timer to work on WASM for now... this needs some more
404404
* testing and fixes that are WIP on other PRs */
405-
#ifdef __EMSCRIPTEN__
405+
#if defined(__EMSCRIPTEN__) || defined(__wasi__)
406406
return RAISE(PyExc_NotImplementedError,
407407
"set_timer is not implemented on WASM yet");
408408
#endif

0 commit comments

Comments
 (0)