Fix evented builds on windows with runtime safety on

This commit is contained in:
Alexandros Naskos 2020-05-31 18:53:32 +03:00 committed by Andrew Kelley
parent 078e4afdaf
commit 215a0d61ab

View File

@ -391,6 +391,7 @@ pub fn GetQueuedCompletionStatus(
.HANDLE_EOF => return GetQueuedCompletionStatusResult.EOF,
else => |err| {
if (std.debug.runtime_safety) {
@setEvalBranchQuota(2500);
std.debug.panic("unexpected error: {}\n", .{err});
}
},