summaryrefslogtreecommitdiff
path: root/runtime/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/build.rs')
-rw-r--r--runtime/build.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs
index 5e8132656..a9ba09825 100644
--- a/runtime/build.rs
+++ b/runtime/build.rs
@@ -125,6 +125,15 @@ mod not_docs {
}
}
+ impl deno_node::NodePermissions for Permissions {
+ fn check_read(
+ &mut self,
+ _p: &Path,
+ ) -> Result<(), deno_core::error::AnyError> {
+ unreachable!("snapshotting!")
+ }
+ }
+
impl deno_net::NetPermissions for Permissions {
fn check_net<T: AsRef<str>>(
&mut self,
@@ -167,7 +176,7 @@ mod not_docs {
deno_broadcast_channel::InMemoryBroadcastChannel::default(),
false, // No --unstable.
),
- deno_node::init(false, None), // No --unstable.
+ deno_node::init::<Permissions>(false, None), // No --unstable.
deno_ffi::init::<Permissions>(false),
deno_net::init::<Permissions>(
None, false, // No --unstable.