mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix crash when calling StackIterator.isValidMemory with emscripten
This commit is contained in:
parent
ff3bf98345
commit
b2374c4d75
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user