fix crash when calling StackIterator.isValidMemory with emscripten

This commit is contained in:
Jae B 2024-02-25 10:12:16 +11:00 committed by Andrew Kelley
parent ff3bf98345
commit b2374c4d75

View File

@ -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 => {