Skip to content

Commit

Permalink
FUTURE(ext/ffi,ext/webgpu): stabilize FFI and WebGPU APIs (denoland#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed May 28, 2024
1 parent e9cc8a2 commit adbd564
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);
}

Expand Down
2 changes: 2 additions & 0 deletions tests/specs/future/unstable_flags/main.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tests/specs/future/unstable_flags/main.out
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
true
true
true

0 comments on commit adbd564

Please sign in to comment.