mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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
This commit is contained in:
parent
560ad0331b
commit
064a73f7a0
15 changed files with 60 additions and 179 deletions
|
@ -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<String> {
|
||||
let options = state.borrow::<BootstrapOptions>();
|
||||
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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue