feat(node/os): implement getPriority, setPriority & userInfo (#19370)

Takes #4202 over
Closes #17850 

---------

Co-authored-by: ecyrbe <ecyrbe@gmail.com>
This commit is contained in:
Leo Kettmeir 2023-07-31 22:29:09 +02:00 committed by GitHub
parent 78ceeec6be
commit aa8078b688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 314 additions and 31 deletions

View file

@ -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 {