From 906aa78af33c8405a47d5446d2a6fb3348c275bb Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 21 Aug 2022 17:37:53 +0530 Subject: feat(ops): V8 Fast Calls (#15291) --- ext/net/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/net') 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( unstable: bool, unsafely_ignore_certificate_errors: Option>, ) -> Extension { + let mut ops = ops::init::

(); + ops.extend(ops_tls::init::

()); Extension::builder() .js(include_js_files!( prefix "deno:ext/net", @@ -88,7 +90,7 @@ pub fn init( "02_tls.js", "04_net_unstable.js", )) - .ops([&ops::init::

()[..], &ops_tls::init::

()[..]].concat()) + .ops(ops) .state(move |state| { state.put(DefaultTlsOptions { root_cert_store: root_cert_store.clone(), -- cgit v1.2.3