Commit b2374c4d75

Jae B <doogie1012@gmail.com>
2024-02-25 00:12:16
fix crash when calling StackIterator.isValidMemory with emscripten
1 parent ff3bf98
Changed files (1)
lib
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 => {