Generating Go bindings for any WIT that mentions error-context crashes with BUG: unknown wit.Primitive *wit.ErrorContext
Steps-To-Reproduce
go run ./cmd/wit-bindgen-go \
generate \
poc.wit
poc.wit (validated by wasm-tools component wit)
package demo:demo;
world demo {
export foo: func() -> error-context;
}
Expected
writes generated Go bindings successfully.
Actual
crashes with panic: BUG: unknown wit.Primitive *wit.ErrorContext.
Environment
ubuntu 22.04, x86-64, Go 1.24.3