1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

FUTURE(ext/ffi,ext/webgpu): stabilize FFI and WebGPU APIs (#24011)

Closes #23906
This commit is contained in:
Asher Gomez 2024-05-28 21:37:43 +10:00 committed by GitHub
parent e9cc8a2b53
commit adbd564758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -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(),
]);
}

View file

@ -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",

View file

@ -1 +1,3 @@
true
true
true