get node:fs tests passing part 1 (#16270)

This commit is contained in:
chloe caruso
2025-01-14 20:53:02 -08:00
committed by GitHub
parent 4e193b0ebd
commit 834ad11d48
126 changed files with 5137 additions and 2415 deletions

View File

@@ -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)),
},