From 064a73f7a08eb12d99fcdf8844e9ce5db62be78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 Sep 2024 22:44:29 +0100 Subject: BREAKING: Remove `--unstable` flag (#25522) This commit effectively removes the --unstable flag. It's still being parsed, but it only prints a warning that a granular flag should be used instead and doesn't actually enable any unstable feature. Closes https://github.com/denoland/deno/issues/25485 Closes https://github.com/denoland/deno/issues/23237 --- runtime/ops/bootstrap.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'runtime/ops/bootstrap.rs') diff --git a/runtime/ops/bootstrap.rs b/runtime/ops/bootstrap.rs index a60544534..bbbddc61b 100644 --- a/runtime/ops/bootstrap.rs +++ b/runtime/ops/bootstrap.rs @@ -95,11 +95,7 @@ pub fn op_bootstrap_user_agent(state: &mut OpState) -> String { #[serde] pub fn op_bootstrap_unstable_args(state: &mut OpState) -> Vec { let options = state.borrow::(); - if options.unstable { - return vec!["--unstable".to_string()]; - } - - let mut flags = Vec::new(); + let mut flags = Vec::with_capacity(options.unstable_features.len()); for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS.iter() { if options.unstable_features.contains(&granular_flag.id) { flags.push(format!("--unstable-{}", granular_flag.name)); -- cgit v1.2.3