summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-05-28 21:37:43 +1000
committerGitHub <noreply@github.com>2024-05-28 11:37:43 +0000
commitadbd564758d0f596cee5f23054b24571328bb5d6 (patch)
tree6dd9e6f0f48f6450817d5bb4a2b96364ff56b81d
parente9cc8a2b53ee43289ab964539cca4753e700b6c3 (diff)
FUTURE(ext/ffi,ext/webgpu): stabilize FFI and WebGPU APIs (#24011)
Closes #23906
-rw-r--r--cli/args/mod.rs2
-rw-r--r--tests/specs/future/unstable_flags/main.js2
-rw-r--r--tests/specs/future/unstable_flags/main.out2
3 files changed, 6 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index cd5388459..c9101f590 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -1757,7 +1757,9 @@ impl CliOptions {
if *DENO_FUTURE {
from_config_file.extend_from_slice(&[
+ 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(),
]);
}
diff --git a/tests/specs/future/unstable_flags/main.js b/tests/specs/future/unstable_flags/main.js
index 0d86d0d09..51af892f6 100644
--- a/tests/specs/future/unstable_flags/main.js
+++ b/tests/specs/future/unstable_flags/main.js
@@ -1,3 +1,5 @@
+console.log(typeof await navigator.gpu.requestAdapter() === "object"); // Throws without `--unstable-gpu`
+console.log(typeof Deno.dlopen === "function"); // Undefined without `--unstable-ffi`
console.log(
// Undefined without `--unstable-fs`
Deno.build.os === "windows" ? true : typeof Deno.umask === "function",
diff --git a/tests/specs/future/unstable_flags/main.out b/tests/specs/future/unstable_flags/main.out
index 27ba77dda..b979d62f4 100644
--- a/tests/specs/future/unstable_flags/main.out
+++ b/tests/specs/future/unstable_flags/main.out
@@ -1 +1,3 @@
true
+true
+true