summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-22 18:37:28 +0100
committerGitHub <noreply@github.com>2024-01-22 17:37:28 +0000
commitd20c9e75d1540b1a27e721d0cf66d29ba6a2c3fb (patch)
tree83059b5759fad286d8131795d7d79d6fee5bb440 /cli/factory.rs
parentbc92f872988fd8b9cdf2ae1479278789911237a5 (diff)
refactor: add "UnstableConfig" struct to cli/args/flags.rs (#21993)
This commit adds "UnstableConfig" struct which centralizes handling of all "--unstable-*" flags. Closes https://github.com/denoland/deno/issues/21920
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index ed5232470..1b084fc28 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -603,7 +603,7 @@ impl CliFactory {
// TODO(bartlomieju): enable, once we deprecate `--unstable` in favor
// of granular --unstable-* flags.
// feature_checker.set_warn_cb(Box::new(crate::unstable_warn_cb));
- if self.options.unstable() {
+ if self.options.legacy_unstable_flag() {
checker.enable_legacy_unstable();
}
let unstable_features = self.options.unstable_features();
@@ -709,7 +709,7 @@ impl CliFactory {
.options
.unsafely_ignore_certificate_errors()
.clone(),
- unstable: self.options.unstable(),
+ unstable: self.options.legacy_unstable_flag(),
maybe_root_package_json_deps: self.options.maybe_package_json_deps(),
})
}