summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-07-31 22:29:09 +0200
committerGitHub <noreply@github.com>2023-07-31 22:29:09 +0200
commitaa8078b6888ee4d55ef348e336e076676dffc25f (patch)
tree94eb64853c52c62864cfe3d3efc08edfdfa3f63b /runtime
parent78ceeec6bedb521dfd2a44530bee9fea62afb289 (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')
-rw-r--r--runtime/build.rs7
-rw-r--r--runtime/permissions/mod.rs4
2 files changed, 11 insertions, 0 deletions
diff --git a/runtime/build.rs b/runtime/build.rs
index d7de29883..828bc3c53 100644
--- a/runtime/build.rs
+++ b/runtime/build.rs
@@ -139,6 +139,13 @@ mod startup_snapshot {
fn check_read(&self, _p: &Path) -> Result<(), deno_core::error::AnyError> {
unreachable!("snapshotting!")
}
+ fn check_sys(
+ &self,
+ _kind: &str,
+ _api_name: &str,
+ ) -> Result<(), deno_core::error::AnyError> {
+ unreachable!("snapshotting!")
+ }
}
impl deno_net::NetPermissions for Permissions {
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 {