What happens here ?
-
c/c-app.c
was compiled to
.wasm
(you can see it in the network inspector) - The c-app.js script which is running inside the browser compiles and executes that wasm file
- This runs inside the wasmer runtime which emulates file system bindings (our original program thinks it is interacting with a real file system)
Bellow is the content of the ./tmp.txt
file "written" on
the emulated file system: