Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): missing flag for --unstable-process #24199

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions runtime/js/90_deno_ns.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ const denoNs = {
gid: os.gid,
uid: os.uid,
Command: process.Command,
// TODO(bartlomieju): why is this exported?
ChildProcess: process.ChildProcess,
};

Expand All @@ -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 };
Expand Down
13 changes: 9 additions & 4 deletions runtime/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
];

Expand Down