diff options
author | Colin Ihrig <cjihrig@gmail.com> | 2022-10-26 16:37:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 16:37:48 -0400 |
commit | 37340e23865b17b1466a7e32997b0add96dd3806 (patch) | |
tree | 4e72b47e33d2cff14a8b62231a9fa0555e8492a0 /runtime/permissions.rs | |
parent | f4f1f4f0b64030b744cfb43693af321ea8332bf4 (diff) |
chore(unstable): rename Deno.getUid() and Deno.getGid() (#16432)
This commit renames `Deno.getUid()` to `Deno.uid()` and renames
`Deno.getGid()` to `Deno.gid()`.
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r-- | runtime/permissions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs index ec2f146ae..95f95b512 100644 --- a/runtime/permissions.rs +++ b/runtime/permissions.rs @@ -308,7 +308,7 @@ pub struct SysDescriptor(pub String); pub fn parse_sys_kind(kind: &str) -> Result<&str, AnyError> { match kind { "hostname" | "osRelease" | "loadavg" | "networkInterfaces" - | "systemMemoryInfo" | "getUid" | "getGid" => Ok(kind), + | "systemMemoryInfo" | "uid" | "gid" => Ok(kind), _ => Err(type_error(format!("unknown system info kind \"{}\"", kind))), } } |