# wasm-linker: Fix symbol name on undefined symbol · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1072f82acbe976222851bdd357f52dd9659d73d3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1072f82acbe976222851bdd357f52dd9659d73d3

Requested commit: 1072f82acbe976222851bdd357f52dd9659d73d3

Commit: 1072f82acbe976222851bdd357f52dd9659d73d3

Tree: a87970f53b2a9267b35d664d1251655d19c184fa

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Fix symbol name on undefined symbol

When emitting errors for undefined symbols, rather than
unconditionally always using the name from an import, we must verify
it's a symbol type that could have such an import. e.g. undefined
data symbols do not have a corresponding import. For this reason we
must use the regular name.

```

## Parents

- [2339b25fd42ccd136660b9e4575aab2bb85b1163](https://git.cafe/gitcafe/zig/commit/2339b25fd42ccd136660b9e4575aab2bb85b1163?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1072f82acbe976222851bdd357f52dd9659d73d3?format=markdown)
