From 894bdfa8ef17d5a1790bf5654e455949646a604d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Mon, 15 Jan 2024 22:25:10 +0100 Subject: [PATCH] zig 0.12.0-dev.2208+4debd4338 --- build.zig | 2 +- src/lib/buzz_io.zig | 2 ++ src/lib/buzz_os.zig | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 78ca05d7..0c123dd4 100644 --- a/build.zig +++ b/build.zig @@ -88,7 +88,7 @@ fn get_buzz_prefix(b: *Build) []const u8 { pub fn build(b: *Build) !void { // Check minimum zig version const current_zig = builtin.zig_version; - const min_zig = std.SemanticVersion.parse("0.12.0-dev.2150+63de8a598") catch return; + const min_zig = std.SemanticVersion.parse("0.12.0-dev.2208+4debd4338") catch return; if (current_zig.order(min_zig).compare(.lt)) { @panic(b.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig })); } diff --git a/src/lib/buzz_io.zig b/src/lib/buzz_io.zig index 428f2e3d..4d056bf1 100644 --- a/src/lib/buzz_io.zig +++ b/src/lib/buzz_io.zig @@ -181,6 +181,8 @@ fn handleFileReadLineError(ctx: *api.NativeCtx, err: anytype) void { error.StreamTooLong, => ctx.vm.pushErrorEnum("errors.ReadWriteError", @errorName(err)), + error.OutOfMemory => @panic("Out of memory"), + error.Unexpected => ctx.vm.pushError("errors.UnexpectedError", null), } } diff --git a/src/lib/buzz_os.zig b/src/lib/buzz_os.zig index e2e21227..3df9c456 100644 --- a/src/lib/buzz_os.zig +++ b/src/lib/buzz_os.zig @@ -428,6 +428,8 @@ fn handleReadLineError(ctx: *api.NativeCtx, err: anytype) void { error.Unexpected => ctx.vm.pushError("errors.UnexpectedError", null), + error.OutOfMemory => @panic("Out of memory"), + error.EndOfStream => {}, } }