Open johanbrandhorst opened 3 weeks ago
CC @golang/wasm
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
It seems to me this is unfortunate.
main.go:5:2
part of error message is the current position in the source code, not part of the error message emited by obj.Link.InitTextSym
.<autogenerated>:1
.Could we simply use the wrapped function position for wrapper ones instead of auto generated? cc @cherrymui
Go version
tip
Output of
go env
in your module/workspace:What did you do?
I created a package that exported two identical symbols (in the same package) using the go:wasmexport compiler directive.
What did you see happen?
I saw a compiler error:
What did you expect to see?
The error message should be able to point to the line number of both symbols:
It is also notable that
main.go:5
is the location of the return, not the compiler directive.