diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-08-21 17:37:53 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 17:37:53 +0530 |
| commit | 906aa78af33c8405a47d5446d2a6fb3348c275bb (patch) | |
| tree | c444e42b6bdfe4bad35634925829a1b1d190fa75 /ext/net | |
| parent | e39d4e3e7fb9815bf094e7321d1d73d00275831a (diff) | |
feat(ops): V8 Fast Calls (#15291)
Diffstat (limited to 'ext/net')
| -rw-r--r-- | ext/net/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/net/lib.rs b/ext/net/lib.rs index c95348020..249170060 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -81,6 +81,8 @@ pub fn init<P: NetPermissions + 'static>( unstable: bool, unsafely_ignore_certificate_errors: Option<Vec<String>>, ) -> Extension { + let mut ops = ops::init::<P>(); + ops.extend(ops_tls::init::<P>()); Extension::builder() .js(include_js_files!( prefix "deno:ext/net", @@ -88,7 +90,7 @@ pub fn init<P: NetPermissions + 'static>( "02_tls.js", "04_net_unstable.js", )) - .ops([&ops::init::<P>()[..], &ops_tls::init::<P>()[..]].concat()) + .ops(ops) .state(move |state| { state.put(DefaultTlsOptions { root_cert_store: root_cert_store.clone(), |
