WebAssembly: add WASIP1 runtime configuration examples
This change adds a "WASIP1 Runtime Configuration" section to the
WebAssembly page.
It provides configuration examples for Wasmtime, Wazero, and Node.js
to properly map the host directory to the guest root `/` and set `PWD`.
Without this configuration, Go programs compiled for `wasip1` often
fail with "Bad file number" errors instead of the expected
`fs.ErrNotExist` when accessing non-existent files or calling
`os.Getwd()`.
For golang/go#60732
Change-Id: I81b328fdf01e45912140848cd7e6cc7299865f04
GitHub-Last-Rev: 3775150fd6a4b82a7ce54ca0416145a2f29c7740
GitHub-Pull-Request: golang/wiki#75
Reviewed-on: https://go-review.googlesource.com/c/wiki/+/727580
Reviewed-by: Sean Liao <sean@liao.dev>
1 file changed