diff options
| author | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-03-25 09:03:15 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-07 23:34:17 +0000 |
| commit | dd21a77bfae041eefe7b02ab5a40a7c4d3403f8d (patch) | |
| tree | 1a2f443e2daf2373b02ec7729f46d1baca315e6a /src/syscall | |
| parent | 693a34e78856980b0bb4a10ffcfd2bac1dbd6ebe (diff) | |
| download | go-dd21a77bfae041eefe7b02ab5a40a7c4d3403f8d.tar.xz | |
internal: add wasip1 support
For #58141
Co-authored-by: Richard Musiol <neelance@gmail.com>
Co-authored-by: Achille Roussel <achille.roussel@gmail.com>
Co-authored-by: Julien Fabre <ju.pryz@gmail.com>
Co-authored-by: Evan Phoenix <evan@phx.io>
Change-Id: I1488726e5b43cd21c5f83900476afd2fb63d70c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/479622
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/syscall_wasip1.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall/syscall_wasip1.go b/src/syscall/syscall_wasip1.go index 4572cad79b..d86688f692 100644 --- a/src/syscall/syscall_wasip1.go +++ b/src/syscall/syscall_wasip1.go @@ -7,6 +7,7 @@ package syscall import ( + "errors" "internal/itoa" "internal/oserror" "unsafe" @@ -81,6 +82,8 @@ func (e Errno) Is(target error) bool { return e == EEXIST || e == ENOTEMPTY case oserror.ErrNotExist: return e == ENOENT + case errors.ErrUnsupported: + return e == ENOSYS } return false } |
