summaryrefslogtreecommitdiff
path: root/ext/fs/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fs/lib.rs')
-rw-r--r--ext/fs/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs
index ab19540b5..d36d8b5c2 100644
--- a/ext/fs/lib.rs
+++ b/ext/fs/lib.rs
@@ -64,11 +64,15 @@ pub trait FsPermissions {
}
}
+pub const UNSTABLE_FEATURE_NAME: &str = "fs";
+
/// 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_legacy_unstable_or_exit(api_name);
+ .check_or_exit_with_legacy_fallback(UNSTABLE_FEATURE_NAME, api_name);
}
deno_core::extension!(deno_fs,