diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-25 11:41:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 11:41:21 -0500 |
commit | a4ec7dfae01485290af91c62c1ce17a742dcb104 (patch) | |
tree | ac5f66523e5151b56e10304026ba096871fbb825 /cli/worker.rs | |
parent | 00e4c47890e9b5d95557b06f2048d14a79de8401 (diff) |
feat(unstable): --unstable-unsafe-proto (#21313)
Closes https://github.com/denoland/deno/issues/21276
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 361aad2ec..5be64e117 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -570,7 +570,8 @@ impl CliMainWorkerFactory { // TODO(bartlomieju): this is cruft, update FeatureChecker to spit out // list of enabled features. let feature_checker = shared.feature_checker.clone(); - let mut unstable_features = Vec::with_capacity(8); + let mut unstable_features = + Vec::with_capacity(crate::UNSTABLE_GRANULAR_FLAGS.len()); for (feature_name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS { if feature_checker.check(feature_name) { unstable_features.push(*id); @@ -768,7 +769,8 @@ fn create_web_worker_callback( // TODO(bartlomieju): this is cruft, update FeatureChecker to spit out // list of enabled features. let feature_checker = shared.feature_checker.clone(); - let mut unstable_features = Vec::with_capacity(8); + let mut unstable_features = + Vec::with_capacity(crate::UNSTABLE_GRANULAR_FLAGS.len()); for (feature_name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS { if feature_checker.check(feature_name) { unstable_features.push(*id); |