summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/permissions/mod.rs9
-rw-r--r--runtime/snapshot.rs7
2 files changed, 16 insertions, 0 deletions
diff --git a/runtime/permissions/mod.rs b/runtime/permissions/mod.rs
index 7740a8e31..89adab361 100644
--- a/runtime/permissions/mod.rs
+++ b/runtime/permissions/mod.rs
@@ -1384,6 +1384,15 @@ impl deno_node::NodePermissions for PermissionsContainer {
self.0.lock().read.check(path, api_name)
}
+ #[inline(always)]
+ fn check_write_with_api_name(
+ &self,
+ path: &Path,
+ api_name: Option<&str>,
+ ) -> Result<(), AnyError> {
+ self.0.lock().write.check(path, api_name)
+ }
+
fn check_sys(&self, kind: &str, api_name: &str) -> Result<(), AnyError> {
self.0.lock().sys.check(kind, Some(api_name))
}
diff --git a/runtime/snapshot.rs b/runtime/snapshot.rs
index 978f3d70e..a50f0773a 100644
--- a/runtime/snapshot.rs
+++ b/runtime/snapshot.rs
@@ -84,6 +84,13 @@ impl deno_node::NodePermissions for Permissions {
) -> Result<(), deno_core::error::AnyError> {
unreachable!("snapshotting!")
}
+ fn check_write_with_api_name(
+ &self,
+ _p: &Path,
+ _api_name: Option<&str>,
+ ) -> Result<(), deno_core::error::AnyError> {
+ unreachable!("snapshotting!")
+ }
fn check_sys(
&self,
_kind: &str,