Skip to content

Commit

Permalink
zig 0.12.0-dev.2208+4debd4338
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed Jan 15, 2024
1 parent 13b4311 commit 894bdfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/buzz_io.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/buzz_os.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {},
}
}
Expand Down

0 comments on commit 894bdfa

Please sign in to comment.