# wasm: implement \`cmp_lt_errors_len\` instruction · gitcafe/zig

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

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

Visibility: public

Requested revision: c4b295bb6e9fcb1d02122cb70c95019c81ae543e

Requested commit: c4b295bb6e9fcb1d02122cb70c95019c81ae543e

Commit: c4b295bb6e9fcb1d02122cb70c95019c81ae543e

Tree: d83d44b17acddd5be0affc7cc368e479ae4f9acd

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: implement `cmp_lt_errors_len` instruction

Creates a global undefined symbol when this instruction is called.
The linker will then resolve it as a lazy symbol, ensuring it is
only generated when the symbol was created. In `flush` it will then
generate the function as only then, all errors are known and we can
generate the function body. This logic allows us to re-use the same
functionality of linker-synthetic-functions.

```

## Parents

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

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