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/js | |
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/js')
-rw-r--r-- | runtime/js/30_os.js | 12 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 4 |
2 files changed, 8 insertions, 8 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); diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 00d343f74..1f949f512 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -128,8 +128,8 @@ osRelease: __bootstrap.os.osRelease, systemMemoryInfo: __bootstrap.os.systemMemoryInfo, networkInterfaces: __bootstrap.os.networkInterfaces, - getGid: __bootstrap.os.getGid, - getUid: __bootstrap.os.getUid, + gid: __bootstrap.os.gid, + uid: __bootstrap.os.uid, listenDatagram: __bootstrap.net.listenDatagram, umask: __bootstrap.fs.umask, HttpClient: __bootstrap.fetch.HttpClient, |