summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-12 22:27:16 +1000
committerGitHub <noreply@github.com>2024-09-12 12:27:16 +0000
commit9e8f84214f88ae725f9a028f615b19546b9d789f (patch)
tree5a1ef949e6fd541ecc5bcf16e3bc61fbd5b6b6e7 /cli
parentb0265eaf8f1d42ec983c2fef0d78435239442ddc (diff)
refactor: cleanup unstable checks for WebGPU, FFI and FS APIs (#25586)
Continuation of work in #25488. --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/args/mod.rs12
-rw-r--r--cli/tsc/99_main_compiler.js6
2 files changed, 0 insertions, 18 deletions
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' " +