From 37340e23865b17b1466a7e32997b0add96dd3806 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Wed, 26 Oct 2022 16:37:48 -0400 Subject: chore(unstable): rename Deno.getUid() and Deno.getGid() (#16432) This commit renames `Deno.getUid()` to `Deno.uid()` and renames `Deno.getGid()` to `Deno.gid()`. --- runtime/js/30_os.js | 12 ++++++------ runtime/js/90_deno_ns.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'runtime/js') 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, -- cgit v1.2.3