# wasm-linker: ensure symbol fields are set for decls · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b

Requested commit: 2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b

Commit: 2ac0ba03a60a133e7ffbab9ad6aaf3b54f6c747b

Tree: bd220f17e27942eb4946faccc6cea891d8a8c78d

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: ensure symbol fields are set for decls

Previously the symbol tag field would remain `undefined` until it
was set during `flush`. However, the symbol's tag would be observed
earlier than where it was being set. We now set it to the explicit
tag `undefined` so this can be caught during debug. The symbol tag of
a decl will now also be set right after `updateDecl` and `updateFunc`.

Likewise, we now also set the `name` field during atom creation for
decls, as well as set the other fields to the max(u32) to ensure we
get a compiler crash during debug to ensure any misses will be caught.

```

## Parents

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

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