diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-07-31 22:29:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-31 22:29:09 +0200 |
commit | aa8078b6888ee4d55ef348e336e076676dffc25f (patch) | |
tree | 94eb64853c52c62864cfe3d3efc08edfdfa3f63b /ext/node/lib.rs | |
parent | 78ceeec6bedb521dfd2a44530bee9fea62afb289 (diff) |
feat(node/os): implement getPriority, setPriority & userInfo (#19370)
Takes #4202 over
Closes #17850
---------
Co-authored-by: ecyrbe <ecyrbe@gmail.com>
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 8f910ac63..318de77e1 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -53,6 +53,7 @@ pub trait NodePermissions { api_name: &str, ) -> Result<(), AnyError>; fn check_read(&self, path: &Path) -> Result<(), AnyError>; + fn check_sys(&self, kind: &str, api_name: &str) -> Result<(), AnyError>; } pub(crate) struct AllowAllNodePermissions; @@ -68,6 +69,9 @@ impl NodePermissions for AllowAllNodePermissions { fn check_read(&self, _path: &Path) -> Result<(), AnyError> { Ok(()) } + fn check_sys(&self, _kind: &str, _api_name: &str) -> Result<(), AnyError> { + Ok(()) + } } #[allow(clippy::disallowed_types)] @@ -243,6 +247,9 @@ deno_core::extension!(deno_node, ops::zlib::brotli::op_brotli_decompress_stream, ops::zlib::brotli::op_brotli_decompress_stream_end, ops::http::op_node_http_request<P>, + ops::os::op_node_os_get_priority<P>, + ops::os::op_node_os_set_priority<P>, + ops::os::op_node_os_username<P>, op_node_build_os, op_is_any_arraybuffer, op_node_is_promise_rejected, |