mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
get node:fs tests passing part 1 (#16270)
This commit is contained in:
@@ -55,7 +55,7 @@ pub const ShellErr = union(enum) {
|
||||
pub fn newSys(e: anytype) @This() {
|
||||
return .{
|
||||
.sys = switch (@TypeOf(e)) {
|
||||
Syscall.Error => e.toSystemError(),
|
||||
Syscall.Error => e.toShellSystemError(),
|
||||
JSC.SystemError => e,
|
||||
else => @compileError("Invalid `e`: " ++ @typeName(e)),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user