mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
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:
committed by
Ron Evans
parent
4cbd34d32f
commit
020cca8c3c
Vendored
+1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user