# stage1: deal with WebAssembly not supporting @returnAddress\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 1b1921f0e26b9cb8ac78003c9061acac2da5e7ab

Requested commit: 1b1921f0e26b9cb8ac78003c9061acac2da5e7ab

Commit: 1b1921f0e26b9cb8ac78003c9061acac2da5e7ab

Tree: 4008d0d0e7eecbc32f61af6e36077f01ec1a489a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: deal with WebAssembly not supporting @returnAddress()

This makes `@returnAddress()` return 0 for WebAssembly (when not using
the Emscripten OS) and avoids trying to capture stack traces for the
general purpose allocator on that target.

```

## Parents

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

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