summaryrefslogtreecommitdiff
path: root/ext/net
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-17 02:13:34 +0100
committerGitHub <noreply@github.com>2024-09-17 01:13:34 +0000
commitaaf2bf4bfbf90bed0b6e9812f337f057d1d24f93 (patch)
treec8e9f889c5864fcdc9d14bda0b13190449deae00 /ext/net
parent01b5dfd9ea927d41492fde352cd79f7b972439b9 (diff)
chore: upgrade deno_core (#25674)
No functional changes, just removes dead code.
Diffstat (limited to 'ext/net')
-rw-r--r--ext/net/lib.rs4
-rw-r--r--ext/net/ops.rs5
2 files changed, 2 insertions, 7 deletions
diff --git a/ext/net/lib.rs b/ext/net/lib.rs
index 0ef3e85c4..b039965d4 100644
--- a/ext/net/lib.rs
+++ b/ext/net/lib.rs
@@ -88,11 +88,9 @@ impl NetPermissions for deno_permissions::PermissionsContainer {
/// Helper for checking unstable features. Used for sync ops.
fn check_unstable(state: &OpState, api_name: &str) {
- // TODO(bartlomieju): replace with `state.feature_checker.check_or_exit`
- // once we phase out `check_or_exit_with_legacy_fallback`
state
.feature_checker
- .check_or_exit_with_legacy_fallback(UNSTABLE_FEATURE_NAME, api_name);
+ .check_or_exit(UNSTABLE_FEATURE_NAME, api_name);
}
pub fn get_declaration() -> PathBuf {
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 67d32fe03..f2735eda9 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -1063,12 +1063,9 @@ 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)),
+ feature_checker: Some(Arc::new(Default::default())),
..Default::default()
});