-
I create a wasm file using the example found in the git :
then I try to execute the wasm file in the browser using the following code : <html> <script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@latest/dist/browser.umd.js"></script> <script>
</script> The lin e : |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Answering myself: mv 3_2-wasm32-unknown-wasi-full-js/usr/local/bin/ruby ruby_js.wasm mkdir src wasi-vfs pack ruby_js.wasm --mapdir /src::./src --mapdir /usr::./3_2-wasm32-unknown-wasi-full-js/usr -o my_js_app.wasm` |
Beta Was this translation helpful? Give feedback.
-
Now the problem is wasi-vfs that have problem with js profile. Hope it'll be solved soon. |
Beta Was this translation helpful? Give feedback.
-
@jeezs Thank you for detailed report 🙏 Which version of wasi-vfs are you using? |
Beta Was this translation helpful? Give feedback.
-
the version that causes trouble is wasi-vfs version 0.4.0. |
Beta Was this translation helpful? Give feedback.
the version that causes trouble is wasi-vfs version 0.4.0.
So I switch to version 0.3.0.
latest version of browser.umd.js also conflict with any versions of wasi_vfs so I download this version instead : https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi/dist/browser.umd.js,
Then it works.