aboutsummaryrefslogtreecommitdiff
path: root/src/internal/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/runtime')
-rw-r--r--src/internal/runtime/wasitest/testdata/tcpecho.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal/runtime/wasitest/testdata/tcpecho.go b/src/internal/runtime/wasitest/testdata/tcpecho.go
index 819e352688..6da56acba1 100644
--- a/src/internal/runtime/wasitest/testdata/tcpecho.go
+++ b/src/internal/runtime/wasitest/testdata/tcpecho.go
@@ -62,8 +62,7 @@ func findListener() (net.Listener, error) {
l, err := net.FileListener(f)
f.Close()
- var se syscall.Errno
- switch errors.As(err, &se); se {
+ switch se, _ := errors.AsType[syscall.Errno](err); se {
case syscall.ENOTSOCK:
continue
case syscall.EBADF: