mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(node): Implement fs.lchown
(and process.getegid
) (#24418)
Closes https://github.com/denoland/deno/issues/21260. Part of https://github.com/denoland/deno/issues/18218. Implements `node:fs.lchown`, and enables the node_compat test for it. The test uses `process.getegid`, which we didn't have implemented, so I went ahead and implemented that as well to get the test working.
This commit is contained in:
parent
28d2ff7bdc
commit
d4d3a3c54f
14 changed files with 310 additions and 5 deletions
|
@ -915,7 +915,9 @@ impl Descriptor for SysDescriptor {
|
|||
pub fn parse_sys_kind(kind: &str) -> Result<&str, AnyError> {
|
||||
match kind {
|
||||
"hostname" | "osRelease" | "osUptime" | "loadavg" | "networkInterfaces"
|
||||
| "systemMemoryInfo" | "uid" | "gid" | "cpus" | "homedir" => Ok(kind),
|
||||
| "systemMemoryInfo" | "uid" | "gid" | "cpus" | "homedir" | "getegid" => {
|
||||
Ok(kind)
|
||||
}
|
||||
_ => Err(type_error(format!("unknown system info kind \"{kind}\""))),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue