This commit is contained in:
iceBear67
2026-07-24 13:29:16 +00:00
commit 2275bd7dc4
29 changed files with 3641 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// This file is substituted in via `go build -overlay` for the js/wasm build ONLY.
//
// Upstream common/buf/buffer_unix.go (build tag `!windows`) defines
// Buffer.Iovec returning golang.org/x/sys/unix.Iovec, which does not exist for
// GOARCH=wasm. Iovec's only callers are the platform-specific bufio syscall
// paths, none of which are exercised under wasm (there are no raw socket fds in
// a browser). Replacing the file with an empty package body keeps common/buf
// compilable without pulling in unix.Iovec. Native builds do not use the
// overlay and keep the real implementation.
package buf