wasm: add more stubbed file operations

This fixes issue #5037. A few more wasip1 syscalls needed to be present,
and in particular fd_prestat_get needed to return EBADF on invalid file
descriptors.
This commit is contained in:
Ayke van Laethem
2026-04-17 11:23:18 +02:00
committed by Ron Evans
parent 4cbd34d32f
commit 020cca8c3c
2 changed files with 11 additions and 4 deletions
+1
View File
@@ -33,6 +33,7 @@ func main() {
// package time
time.Sleep(time.Millisecond)
time.Sleep(-1) // negative sleep should return immediately
time.LoadLocation("UTC")
// Exit the program normally.
os.Exit(0)