From 9e8f84214f88ae725f9a028f615b19546b9d789f Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 12 Sep 2024 22:27:16 +1000 Subject: refactor: cleanup unstable checks for WebGPU, FFI and FS APIs (#25586) Continuation of work in #25488. --------- Signed-off-by: Asher Gomez --- cli/args/mod.rs | 12 ------------ cli/tsc/99_main_compiler.js | 6 ------ 2 files changed, 18 deletions(-) (limited to 'cli') diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 203ceec50..7d885295e 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1596,18 +1596,6 @@ impl CliOptions { } }); - // TODO(2.0): remove this code and enable these features in `99_main.js` by default. - let future_features = [ - deno_runtime::deno_ffi::UNSTABLE_FEATURE_NAME.to_string(), - deno_runtime::deno_fs::UNSTABLE_FEATURE_NAME.to_string(), - deno_runtime::deno_webgpu::UNSTABLE_FEATURE_NAME.to_string(), - ]; - future_features.iter().for_each(|future_feature| { - if !from_config_file.contains(future_feature) { - from_config_file.push(future_feature.to_string()); - } - }); - if !from_config_file.is_empty() { // collect unstable granular flags let mut all_valid_unstable_flags: Vec<&str> = diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 03729b892..42bf1055f 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -36,17 +36,11 @@ delete Object.prototype.__proto__; "Kv", "KvListIterator", "KvU64", - "UnsafeCallback", - "UnsafePointer", - "UnsafePointerView", - "UnsafeFnPointer", "UnixConnectOptions", "UnixListenOptions", - "dlopen", "listen", "listenDatagram", "openKv", - "umask", ]); const unstableMsgSuggestion = "If not, try changing the 'lib' compiler option to include 'deno.unstable' " + -- cgit v1.2.3