summaryrefslogtreecommitdiff
path: root/runtime/snapshot.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-12-04 16:05:40 -0500
committerGitHub <noreply@github.com>2023-12-04 21:05:40 +0000
commita24d3e8763bc48b69936db9231efb76766914303 (patch)
tree7091c5354d1e341c34e5847ea0271213c8730c69 /runtime/snapshot.rs
parent9eb25e3cff22d1f704ede0d4066abc846a26a919 (diff)
perf(node/fs): faster `existsSync` when not exists (#21458)
Diffstat (limited to 'runtime/snapshot.rs')
-rw-r--r--runtime/snapshot.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/snapshot.rs b/runtime/snapshot.rs
index f7642573e..a0f0665b4 100644
--- a/runtime/snapshot.rs
+++ b/runtime/snapshot.rs
@@ -76,7 +76,11 @@ impl deno_node::NodePermissions for Permissions {
) -> Result<(), deno_core::error::AnyError> {
unreachable!("snapshotting!")
}
- fn check_read(&self, _p: &Path) -> Result<(), deno_core::error::AnyError> {
+ fn check_read_with_api_name(
+ &self,
+ _p: &Path,
+ _api_name: Option<&str>,
+ ) -> Result<(), deno_core::error::AnyError> {
unreachable!("snapshotting!")
}
fn check_sys(