chore: upgrade deno_core (#25674)

No functional changes, just removes dead code.
This commit is contained in:
Bartek Iwańczuk 2024-09-17 02:13:34 +01:00 committed by GitHub
parent 01b5dfd9ea
commit aaf2bf4bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 15 additions and 44 deletions

View file

@ -17,11 +17,7 @@ use deno_core::OpState;
/// Helper for checking unstable features. Used for sync ops.
pub fn check_unstable(state: &OpState, feature: &str, 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(feature, api_name);
state.feature_checker.check_or_exit(feature, api_name);
}
pub struct TestingFeaturesEnabled(pub bool);