summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
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 {