zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b2374c4d75d16ac0eb7b7b5e53411a80e9f4413d (tree)
parent ff3bf983459c5c58ec0374f6f52627902f13e721
Author: Jae B <doogie1012@gmail.com>
Date:   Sun, 25 Feb 2024 10:12:16 +1100

fix crash when calling StackIterator.isValidMemory with emscripten

Diffstat:
Mlib/std/debug.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -688,7 +688,7 @@ pub const StackIterator = struct { } return true; - } else if (@hasDecl(os.system, "msync") and native_os != .wasi) { + } else if (@hasDecl(os.system, "msync") and native_os != .wasi and native_os != .emscripten) { os.msync(aligned_memory, os.MSF.ASYNC) catch |err| { switch (err) { os.MSyncError.UnmappedMemory => {