Compare commits

...

4 Commits

Author SHA1 Message Date
pfg
d96337171b fix build error 2025-04-17 13:45:45 -07:00
pfg
1335b999df Merge branch 'main' into pfg/fix-debug-crash 2025-04-17 13:44:43 -07:00
pfg
73c8bf8568 remove the assertion entirely 2025-04-16 21:05:39 -07:00
pfg
dae8c2721d allow invalid fd in openat 2025-04-16 21:01:14 -07:00

View File

@@ -123,7 +123,6 @@ pub const FD = packed struct(backing_int) {
/// When calling fd function, you may not be able to close the returned fd.
/// To close the fd, you have to call `.close()` on the `bun.FD`.
pub fn native(fd: FD) fd_t {
if (Environment.isDebug and !@inComptime()) bun.assert(fd.isValid());
return switch (os) {
else => fd.value.as_system,
.windows => switch (fd.decodeWindows()) {