-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__wasi_random_get in wasi polyfill not defined #89
Comments
Good spot! Those functions should have three underscores. I've now fixed them in dd0d71b. |
@sunfishcode I can still reproduce this on the publicly hosted polyfill; you might want to update the polyfill on the site. |
It's now updated with this fix. |
howjmay
pushed a commit
to howjmay/wasmtime
that referenced
this issue
Jan 24, 2022
Fixes bytecodealliance#89. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
pchickey
pushed a commit
to pchickey/wasmtime
that referenced
this issue
May 12, 2023
…ce#89) Preview1's `fd_readdir` includes `.` and `..`, but Preview2 is changing to avoid this. Update the Preview2 host implementation to omit these entries, and add code the polyfill to re-add them.
pchickey
pushed a commit
to pchickey/wasmtime
that referenced
this issue
May 16, 2023
…ce#89) Preview1's `fd_readdir` includes `.` and `..`, but Preview2 is changing to avoid this. Update the Preview2 host implementation to omit these entries, and add code the polyfill to re-add them.
mooori
pushed a commit
to mooori/wasmtime
that referenced
this issue
Dec 20, 2023
Rewrite zkasm test infra to JS
dhil
added a commit
to dhil/wasmtime
that referenced
this issue
Feb 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The javascript polyflll function
random_get
calls an undefined function__wasm_random_get
and gives an error. Calling the___wasi_random_get
function with 3 underscores would generate a random number without errors. Most of the other WASI functions seem to have 3 underscores so why doesn't this function have them? Thesched_yield
andsock_shutdown
functions also seem to be calling undefined functions.https://github.com/CraneStation/wasmtime/blob/a6f31a2be331f66a26e5516cae80c02261b49744/wasmtime-wasi/js-polyfill/wasi.js#L455
The text was updated successfully, but these errors were encountered: