summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-01-31 14:44:19 +0900
committerGitHub <noreply@github.com>2022-01-31 14:44:19 +0900
commit49a0db0d2a2a697320ea95bacaca9bc61199c951 (patch)
tree4c5d7557afe1c93821ac5259e999e776f537041d /runtime/js/30_os.js
parent245f69256b9e22f7759b887e82138ad3844a8cf4 (diff)
feat(unstable): add Deno.getUid (#13496)
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index 38b0acb32..e8467c268 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -28,6 +28,10 @@
return core.opSync("op_network_interfaces");
}
+ function getUid() {
+ return core.opSync("op_getuid");
+ }
+
// This is an internal only method used by the test harness to override the
// behavior of exit when the exit sanitizer is enabled.
let exitHandler = null;
@@ -87,12 +91,13 @@
window.__bootstrap.os = {
env,
execPath,
- setExitHandler,
exit,
- osRelease,
- systemMemoryInfo,
+ getUid,
hostname,
loadavg,
networkInterfaces,
+ osRelease,
+ setExitHandler,
+ systemMemoryInfo,
};
})(this);