diff options
author | Luca Casonato <hello@lcas.dev> | 2024-06-13 16:00:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 16:00:38 +0300 |
commit | abe9953829f0c5174ffd7668d9903785b7a7e4c9 (patch) | |
tree | 00816d36599ed00fe2db57a33d234f961895f8bf | |
parent | 8ad25e86da30de65f9d00e08500dd49de7d7331e (diff) |
fix(cli): missing flag for `--unstable-process` (#24199)
-rw-r--r-- | runtime/js/90_deno_ns.js | 10 | ||||
-rw-r--r-- | runtime/lib.rs | 13 |
2 files changed, 14 insertions, 9 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 2e13976a7..cf3e445c9 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -245,7 +245,6 @@ const denoNs = { gid: os.gid, uid: os.uid, Command: process.Command, - // TODO(bartlomieju): why is this exported? ChildProcess: process.ChildProcess, }; @@ -258,10 +257,11 @@ const unstableIds = { http: 5, kv: 6, net: 7, - temporal: 8, - unsafeProto: 9, - webgpu: 10, - workerOptions: 11, + process: 8, + temporal: 9, + unsafeProto: 10, + webgpu: 11, + workerOptions: 12, }; const denoNsUnstableById = { __proto__: null }; diff --git a/runtime/lib.rs b/runtime/lib.rs index c92f5aea2..a729d88f7 100644 --- a/runtime/lib.rs +++ b/runtime/lib.rs @@ -90,23 +90,28 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[( "Enable unstable net APIs", 7, ), - ("temporal", "Enable unstable Temporal API", 8), + ( + ops::process::UNSTABLE_FEATURE_NAME, + "Enable unstable process APIs", + 8, + ), + ("temporal", "Enable unstable Temporal API", 9), ( "unsafe-proto", "Enable unsafe __proto__ support. This is a security risk.", // This number is used directly in the JS code. Search // for "unstableIds" to see where it's used. - 9, + 10, ), ( deno_webgpu::UNSTABLE_FEATURE_NAME, "Enable unstable `WebGPU` API", - 10, + 11, ), ( ops::worker_host::UNSTABLE_FEATURE_NAME, "Enable unstable Web Worker APIs", - 11, + 12, ), ]; |