Skip to content

Commit e5d99be

Browse files
committed
fix: toStringEx not available in 5.1
1 parent 16806d3 commit e5d99be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tests.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,7 @@ test "checkNumeric and toNumeric" {
30873087
})) |_| {
30883088
return error.ExpectedError;
30893089
} else |_| {
3090-
const string = lua.toStringEx(lua.getTop());
3090+
const string = try lua.toString(lua.getTop());
30913091
errdefer std.log.err("expected error message to contain: {s}", .{error_msg});
30923092
errdefer std.log.err("error message: {s}", .{string});
30933093
_ = std.mem.indexOf(u8, string, error_msg) orelse return error.BadErrorMessage;

0 commit comments

Comments
 (0)