# wasm-linker: refactor Limits and add flags · gitcafe/zig

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

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

Visibility: public

Requested revision: 09abd53da701a5ef4db4b81463e2535e192a5eee

Requested commit: 09abd53da701a5ef4db4b81463e2535e192a5eee

Commit: 09abd53da701a5ef4db4b81463e2535e192a5eee

Tree: 50e03af2943873007bed1e1e4e71f7de89c7e970

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: refactor Limits and add flags

Rather than adding the flags "on-demand" during limits writing,
we now properly parse them and store the flags within the limits
itself. This also allows us to store whether we're using shared-
memory or not. Only when the correct flag is set will we set the
max within `Limits` or else we will leave it `undefined`.

```

## Parents

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

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