# wasm: Implement error unions as well as returning them · gitcafe/zig

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

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

Visibility: public

Requested revision: 460b3d39eae8d294efbe2e5762ea38c93c352d63

Requested commit: 460b3d39eae8d294efbe2e5762ea38c93c352d63

Commit: 460b3d39eae8d294efbe2e5762ea38c93c352d63

Tree: c2cebc0b85ecee5c4cdc6bf680c6653d070b3351

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement error unions as well as returning them

This implements basic calling convention resolving. This means that for
types such as an error union, we will now allocate space on the stack to store the result.
This result will then be saved in a temporary local at the callsite.

```

## Parents

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

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