diff options
| author | Colin Ihrig <cjihrig@gmail.com> | 2022-11-09 09:46:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-09 09:46:50 -0500 |
| commit | c36496b3bb9a25640d209d9ac7b2c201bfdc99fb (patch) | |
| tree | 6a1edafba777cf158104ba4d4a8ac3e19adfe4d0 /runtime | |
| parent | 0500aa1f71859772fba7c581e8cb2c1c4804dc2a (diff) | |
feat: stabilize Deno.uid() and Deno.gid() (#16424)
Closes https://github.com/denoland/deno_std/issues/2791
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/js/90_deno_ns.js | 4 | ||||
| -rw-r--r-- | runtime/ops/os/mod.rs | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 8111698be..64653d469 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -124,12 +124,12 @@ systemMemoryInfo: __bootstrap.os.systemMemoryInfo, networkInterfaces: __bootstrap.os.networkInterfaces, consoleSize: __bootstrap.tty.consoleSize, + gid: __bootstrap.os.gid, + uid: __bootstrap.os.uid, }; __bootstrap.denoNsUnstable = { DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory, - gid: __bootstrap.os.gid, - uid: __bootstrap.os.uid, listenDatagram: __bootstrap.net.listenDatagram, umask: __bootstrap.fs.umask, HttpClient: __bootstrap.fetch.HttpClient, diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index 1bc140d44..a46f5740a 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -255,7 +255,6 @@ fn op_system_memory_info( #[cfg(not(windows))] #[op] fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { - super::check_unstable(state, "Deno.gid"); state .borrow_mut::<Permissions>() .sys @@ -270,7 +269,6 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { #[cfg(windows)] #[op] fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { - super::check_unstable(state, "Deno.gid"); state .borrow_mut::<Permissions>() .sys @@ -281,7 +279,6 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { #[cfg(not(windows))] #[op] fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { - super::check_unstable(state, "Deno.uid"); state .borrow_mut::<Permissions>() .sys @@ -296,7 +293,6 @@ fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { #[cfg(windows)] #[op] fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { - super::check_unstable(state, "Deno.uid"); state .borrow_mut::<Permissions>() .sys |
