# defaultPanic: @trap on 'other' target · gitcafe/zig

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

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

Visibility: public

Requested revision: 5e1a83ad2975afdca4f3c9d11ace61fa5dad205a

Requested commit: 5e1a83ad2975afdca4f3c9d11ace61fa5dad205a

Commit: 5e1a83ad2975afdca4f3c9d11ace61fa5dad205a

Tree: dbe969d38e964e3127ff4831363f01b7e08de780

Author: Pat Tullmann

Committer: Andrew Kelley

## Message

```
defaultPanic: @trap on 'other' target

The freestanding and other OS targets by default need to just @trap in the
default Panic implementation.

And `isValidMemory` won't work with freestanding or other targets.

Update the unwind_freestanding.zig test case to also run on the 'other' OS
target, too.  This should keep the Zig's stacktrace generation from
regressing on the standalone targets.

```

## Parents

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

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