mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore(unstable): rename Deno.getUid() and Deno.getGid() (#16432)
This commit renames `Deno.getUid()` to `Deno.uid()` and renames `Deno.getGid()` to `Deno.gid()`.
This commit is contained in:
parent
f4f1f4f0b6
commit
37340e2386
9 changed files with 38 additions and 38 deletions
|
@ -33,12 +33,12 @@
|
|||
return ops.op_network_interfaces();
|
||||
}
|
||||
|
||||
function getGid() {
|
||||
return ops.op_getgid();
|
||||
function gid() {
|
||||
return ops.op_gid();
|
||||
}
|
||||
|
||||
function getUid() {
|
||||
return ops.op_getuid();
|
||||
function uid() {
|
||||
return ops.op_uid();
|
||||
}
|
||||
|
||||
// This is an internal only method used by the test harness to override the
|
||||
|
@ -101,13 +101,13 @@
|
|||
env,
|
||||
execPath,
|
||||
exit,
|
||||
getGid,
|
||||
getUid,
|
||||
gid,
|
||||
hostname,
|
||||
loadavg,
|
||||
networkInterfaces,
|
||||
osRelease,
|
||||
setExitHandler,
|
||||
systemMemoryInfo,
|
||||
uid,
|
||||
};
|
||||
})(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue