summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-31 22:18:33 -0700
committerGitHub <noreply@github.com>2024-10-31 22:18:33 -0700
commit6c6bbeb97495e8c3e8eac7bea27bf836f02b575f (patch)
treec64933f984e01d3aacae6ee03a13a1a78db45392 /runtime/errors.rs
parent6d44952d4daaaab8ed9ec82212d2256c058eb05d (diff)
fix(node): Implement `os.userInfo` properly, add missing `toPrimitive` (#24702)
Fixes the implementation of `os.userInfo`, and adds a missing `toPrimitive` for `tmpdir`. This allows us to enable the corresponding node_compat test.
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index 07bf694dc..a5c436e75 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -1086,6 +1086,7 @@ mod node {
},
OsError::Permission(e) => get_error_class_name(e).unwrap_or("Error"),
OsError::FailedToGetCpuInfo => "TypeError",
+ OsError::FailedToGetUserInfo(e) => get_io_error_class(e),
}
}