zig: handle when coerceToInt32 and coerceToInt64 throw (#20655)

This commit is contained in:
Meghan Denny
2025-06-25 19:44:13 -08:00
committed by GitHub
parent d3bc5e391f
commit b87cf4f247
15 changed files with 43 additions and 54 deletions

View File

@@ -972,12 +972,12 @@ pub const PostgresRequest = struct {
},
.int4 => {
const l = try writer.length();
try writer.int4(@bitCast(value.coerceToInt32(globalObject)));
try writer.int4(@bitCast(try value.coerceToInt32(globalObject)));
try l.writeExcludingSelf();
},
.int4_array => {
const l = try writer.length();
try writer.int4(@bitCast(value.coerceToInt32(globalObject)));
try writer.int4(@bitCast(try value.coerceToInt32(globalObject)));
try l.writeExcludingSelf();
},
.float8 => {