mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +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
4 lines
129 B
Zig
4 lines
129 B
Zig
fn errorName(err: anyerror) [:0]const u8 {
|
|
return @errorName(err);
|
|
}
|
|
export const error_name: *const anyopaque = &errorName;
|