diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-12 22:27:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 12:27:16 +0000 |
commit | 9e8f84214f88ae725f9a028f615b19546b9d789f (patch) | |
tree | 5a1ef949e6fd541ecc5bcf16e3bc61fbd5b6b6e7 /runtime/js/90_deno_ns.js | |
parent | b0265eaf8f1d42ec983c2fef0d78435239442ddc (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 'runtime/js/90_deno_ns.js')
-rw-r--r-- | runtime/js/90_deno_ns.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 51b00fa02..35378da4d 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -126,6 +126,12 @@ const denoNs = { uid: os.uid, Command: process.Command, ChildProcess: process.ChildProcess, + dlopen: ffi.dlopen, + UnsafeCallback: ffi.UnsafeCallback, + UnsafePointer: ffi.UnsafePointer, + UnsafePointerView: ffi.UnsafePointerView, + UnsafeFnPointer: ffi.UnsafeFnPointer, + umask: fs.umask, httpClient: httpClient.httpClient, createHttpClient: httpClient.createHttpClient, }; @@ -154,17 +160,9 @@ denoNsUnstableById[unstableIds.cron] = { cron: cron.cron, }; -denoNsUnstableById[unstableIds.ffi] = { - dlopen: ffi.dlopen, - UnsafeCallback: ffi.UnsafeCallback, - UnsafePointer: ffi.UnsafePointer, - UnsafePointerView: ffi.UnsafePointerView, - UnsafeFnPointer: ffi.UnsafeFnPointer, -}; +denoNsUnstableById[unstableIds.ffi] = {}; -denoNsUnstableById[unstableIds.fs] = { - umask: fs.umask, -}; +denoNsUnstableById[unstableIds.fs] = {}; denoNsUnstableById[unstableIds.http] = { HttpClient: httpClient.HttpClient, |