# wasm: store \`\_\_zig_lt_errors_len\` in linear data · gitcafe/zig

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

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

Visibility: public

Requested revision: 6c1ab376ddcdbb05610487e5b813d42ff37da40d

Requested commit: 6c1ab376ddcdbb05610487e5b813d42ff37da40d

Commit: 6c1ab376ddcdbb05610487e5b813d42ff37da40d

Tree: 759a47fde287b33ae3e40b88a83dc8723b98b379

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: store `__zig_lt_errors_len` in linear data

Rather than using a function call to verify if an error fits within
the global error set's length, we now store the error set' size in
the .rodata segment of the linear memory and load that value onto
the stack to check with the integer value.

```

## Parents

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

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