Open shebbys opened 2 years ago
@hydai I think there are some bugs in Mac's poll_oneoff()
Hi @shebbys Could you provide a minimum code snippet for reproducing this issue?
I will provide a minimum code
This is enough to reproduce it
(base) example_js % cat timeout.js import as os from 'os'; import as std from 'std'; let timer = setTimeout( ()=>{ print('yep'); }, 2000 ) (base) example_js % wasmedge --dir .:. ../target/wasm32-wasi/release/wasmedge_quickjs.wasm timeout.js
Can reproduce the hanging on MacOS Catalina.
I'm unable to get setTimeout to work in the example hello.js and react18_ssr, on a mac m1.
The function exists however it never actually times out - it just hangs indefinitely.