# wasm-linker: Correctly resolve function type · gitcafe/zig

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

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

Visibility: public

Requested revision: 1a3f58f5e56ad166eb5441c6960a8fac36b4ff5f

Requested commit: 1a3f58f5e56ad166eb5441c6960a8fac36b4ff5f

Commit: 1a3f58f5e56ad166eb5441c6960a8fac36b4ff5f

Tree: 978658fea3c20d8ec8c61cf1ac1692a960e892cf

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Correctly resolve function type

When performing relocations for a type index,
we first check if the target symbol is undefined. In which case,
we will obtain the type from the `import` rather than look into the
`functions` table.

```

## Parents

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

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