From 5a1943cd9560466a5922bd3cd79cca5c9f378561 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 24 Sep 2024 07:04:52 -0700 Subject: fix: better error for Deno.UnsafeWindowSurface, correct HttpClient name, cleanup unused code (#25833) --- runtime/js/90_deno_ns.js | 11 +---------- runtime/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'runtime') diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 35378da4d..2448bc3bc 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -132,7 +132,7 @@ const denoNs = { UnsafePointerView: ffi.UnsafePointerView, UnsafeFnPointer: ffi.UnsafeFnPointer, umask: fs.umask, - httpClient: httpClient.httpClient, + HttpClient: httpClient.HttpClient, createHttpClient: httpClient.createHttpClient, }; @@ -160,15 +160,6 @@ denoNsUnstableById[unstableIds.cron] = { cron: cron.cron, }; -denoNsUnstableById[unstableIds.ffi] = {}; - -denoNsUnstableById[unstableIds.fs] = {}; - -denoNsUnstableById[unstableIds.http] = { - HttpClient: httpClient.HttpClient, - createHttpClient: httpClient.createHttpClient, -}; - denoNsUnstableById[unstableIds.kv] = { openKv: kv.openKv, AtomicOperation: kv.AtomicOperation, diff --git a/runtime/lib.rs b/runtime/lib.rs index 034c094a0..f0b1129ce 100644 --- a/runtime/lib.rs +++ b/runtime/lib.rs @@ -122,8 +122,8 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[UnstableGranularFlag] = &[ }, UnstableGranularFlag { name: deno_webgpu::UNSTABLE_FEATURE_NAME, - help_text: "Enable unstable `WebGPU` API", - show_in_help: false, + help_text: "Enable unstable `WebGPU` APIs", + show_in_help: true, id: 11, }, UnstableGranularFlag { -- cgit v1.2.3