mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +00:00
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:
parent
78ceeec6be
commit
aa8078b688
11 changed files with 314 additions and 31 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue