summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-10-04 21:42:17 +0200
committerGitHub <noreply@github.com>2023-10-04 21:42:17 +0200
commita5568066b3d979111134029f9e4f0c1b462b948e (patch)
tree14c4233cc01d55eda7f608b5194f6b088264b52e /ext/net/ops.rs
parent9a46a824bd897e240af8a14f9d950ab6d95f42a5 (diff)
refactor: use deno_core::FeatureChecker for unstable checks (#20765)
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 5deaeb61e..5738620f8 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -771,7 +771,6 @@ fn rdata_to_return_record(
#[cfg(test)]
mod tests {
use super::*;
- use crate::UnstableChecker;
use deno_core::futures::FutureExt;
use deno_core::JsRuntime;
use deno_core::RuntimeOptions;
@@ -1039,7 +1038,6 @@ mod tests {
test_ext,
state = |state| {
state.put(TestPermission {});
- state.put(UnstableChecker { unstable: true });
}
);
@@ -1049,6 +1047,10 @@ mod tests {
});
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 {