diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-03-08 00:32:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 01:32:11 +0100 |
commit | 2ed984ba3aa638c3f088ac1edc5c779c7d9195d1 (patch) | |
tree | 2240b8833d01f26109c140b295c1c297a3ef3461 /cli/main.rs | |
parent | 2d5b19277b483de64087822934d42fc3e09c1c24 (diff) |
fix: respect unstable "temporal" configuration in config file (#22134)
Actual fix happened in https://github.com/denoland/deno/pull/22782, but
this commit adds additional tests and cleans up V8 flags passed on init.
Closes https://github.com/denoland/deno/issues/22123
Closes https://github.com/denoland/deno/issues/22560
Closes https://github.com/denoland/deno/issues/22557
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cli/main.rs b/cli/main.rs index d4a6846a8..3d72a3334 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -372,18 +372,7 @@ pub fn main() { // Using same default as VSCode: // https://github.com/microsoft/vscode/blob/48d4ba271686e8072fc6674137415bc80d936bc7/extensions/typescript-language-features/src/configuration/configuration.ts#L213-L214 DenoSubcommand::Lsp => vec!["--max-old-space-size=3072".to_string()], - _ => { - if flags.unstable_config.legacy_flag_enabled - || flags - .unstable_config - .features - .contains(&"temporal".to_string()) - { - vec!["--harmony-temporal".to_string()] - } else { - vec![] - } - } + _ => vec![], }; init_v8_flags(&default_v8_flags, &flags.v8_flags, get_v8_flags_from_env()); deno_core::JsRuntime::init_platform(None); |