diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-08-18 17:35:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 17:35:02 +0530 |
commit | cd21cff29942f24ba7d38287186cce64d0e84e56 (patch) | |
tree | e663eff884526ee762ae9141a3cf5a0f6967a84e /runtime/build.rs | |
parent | 0b0843e4a54d7c1ddf293ac1ccee2479b69a5ba9 (diff) |
feat(ext/flash): An optimized http/1.1 server (#15405)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index 0c9c0d0d0..0f3d7fb46 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -116,6 +116,15 @@ mod not_docs { } } + impl deno_flash::FlashPermissions for Permissions { + fn check_net<T: AsRef<str>>( + &mut self, + _host: &(T, Option<u16>), + ) -> Result<(), deno_core::error::AnyError> { + unreachable!("snapshotting!") + } + } + impl deno_net::NetPermissions for Permissions { fn check_net<T: AsRef<str>>( &mut self, @@ -165,6 +174,7 @@ mod not_docs { None, ), deno_http::init(), + deno_flash::init::<Permissions>(false), // No --unstable ]; let js_runtime = JsRuntime::new(RuntimeOptions { |