Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm: fix odd WASI readline behavior.
Most of the time, the WASI fd_read call returns the whole line including the newline. Other times, it returns everything except the newline. So before stompiing the newline, check for that condition. This fixes the WASI based wasm implementations (wasmtime, wasmer, lucet).
- Loading branch information