The source code for Go 1.20 contains a comment that describes how Go's goroutine stacks are implemented in WASM: https://github.com/golang/go/commit/660d4815ea4229f96cede86f396017ebf5ca4bb0. Go can't use WASM's built-in stack because WASM doesn't give you any control over it (by design). It's cool to finally see a description of what Go's WASM implementation is doing under the hood.
Sign in to like, save or reply.