summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorColin Ihrig <cjihrig@gmail.com>2022-10-26 16:37:48 -0400
committerGitHub <noreply@github.com>2022-10-26 16:37:48 -0400
commit37340e23865b17b1466a7e32997b0add96dd3806 (patch)
tree4e72b47e33d2cff14a8b62231a9fa0555e8492a0 /runtime/js/30_os.js
parentf4f1f4f0b64030b744cfb43693af321ea8332bf4 (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/js/30_os.js')
-rw-r--r--runtime/js/30_os.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index 4fa71fa83..723b52132 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -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);