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 /runtime/permissions/mod.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 'runtime/permissions/mod.rs')
-rw-r--r-- | runtime/permissions/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/permissions/mod.rs b/runtime/permissions/mod.rs index 84fcfa6aa..56ebf8327 100644 --- a/runtime/permissions/mod.rs +++ b/runtime/permissions/mod.rs @@ -1886,6 +1886,10 @@ impl deno_node::NodePermissions for PermissionsContainer { fn check_read(&self, path: &Path) -> Result<(), AnyError> { self.0.lock().read.check(path, None) } + + fn check_sys(&self, kind: &str, api_name: &str) -> Result<(), AnyError> { + self.0.lock().sys.check(kind, Some(api_name)) + } } impl deno_net::NetPermissions for PermissionsContainer { |