mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
The final offset was clobbering the first error name, which is revealed by an out of bounds when the global error set is empty. Closes #22362
5 lines
129 B
Zig
5 lines
129 B
Zig
fn errorName(err: anyerror) [:0]const u8 {
|
|
return @errorName(err);
|
|
}
|
|
export const error_name: *const anyopaque = &errorName;
|