mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
FUTURE(ext/ffi,ext/webgpu): stabilize FFI and WebGPU APIs (#24011)
Closes #23906
This commit is contained in:
parent
e9cc8a2b53
commit
adbd564758
3 changed files with 6 additions and 0 deletions
|
@ -1757,7 +1757,9 @@ impl CliOptions {
|
||||||
|
|
||||||
if *DENO_FUTURE {
|
if *DENO_FUTURE {
|
||||||
from_config_file.extend_from_slice(&[
|
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_fs::UNSTABLE_FEATURE_NAME.to_string(),
|
||||||
|
deno_runtime::deno_webgpu::UNSTABLE_FEATURE_NAME.to_string(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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(
|
console.log(
|
||||||
// Undefined without `--unstable-fs`
|
// Undefined without `--unstable-fs`
|
||||||
Deno.build.os === "windows" ? true : typeof Deno.umask === "function",
|
Deno.build.os === "windows" ? true : typeof Deno.umask === "function",
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
true
|
true
|
||||||
|
true
|
||||||
|
true
|
||||||
|
|
Loading…
Reference in a new issue