summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-10-12 17:55:50 +0200
committerGitHub <noreply@github.com>2023-10-12 15:55:50 +0000
commitc464cd7073c761780b3170a48542c387560e3f26 (patch)
tree881a26d05423f9c696c8f35ce8bd2d72d562b1ea /ext/net/ops.rs
parent5dd010a4fbeb0602891ea537b98216b8ad7d27a7 (diff)
refactor: FeatureChecker integration in ext/ crates (#20797)
Towards https://github.com/denoland/deno/issues/20779.
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 5738620f8..bbf897555 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -1041,16 +1041,16 @@ mod tests {
}
);
+ let mut feature_checker = deno_core::FeatureChecker::default();
+ feature_checker.enable_legacy_unstable();
+
let mut runtime = JsRuntime::new(RuntimeOptions {
extensions: vec![test_ext::init_ops()],
+ feature_checker: Some(Arc::new(feature_checker)),
..Default::default()
});
let conn_state = runtime.op_state();
- conn_state
- .borrow_mut()
- .feature_checker
- .enable_legacy_unstable();
let server_addr: Vec<&str> = clone_addr.split(':').collect();
let ip_addr = IpAddr {