Compare commits

...

3 Commits

Author SHA1 Message Date
Jarred Sumner
02aebfed7e Update bindings.zig 2024-09-30 22:30:08 -07:00
Jarred Sumner
cebb0b05ec Merge branch 'main' into jarred/nodefs 2024-09-30 22:22:25 -07:00
Jarred Sumner
2d7ad1d1a5 Address assertion failure in node:fs 2024-09-30 22:08:21 -07:00
2 changed files with 267 additions and 206 deletions

View File

@@ -3431,7 +3431,7 @@ pub const JSGlobalObject = opaque {
return 0;
}
if (int < min_t or int > max_t) {
this.throwRangeError(int, .{ .field_name = field_name, .min = min, .max = max });
this.throwRangeError(int, .{ .field_name = field_name, .min = @truncate(min), .max = @truncate(max) });
return null;
}
return @intCast(int);
@@ -3455,7 +3455,7 @@ pub const JSGlobalObject = opaque {
return null;
}
if (f64_val < min_t or f64_val > max_t) {
this.throwRangeError(f64_val, .{ .field_name = comptime field_name, .min = min, .max = max });
this.throwRangeError(f64_val, .{ .field_name = comptime field_name, .min = @truncate(min), .max = @truncate(max) });
return null;
}

File diff suppressed because it is too large Load Diff