From 2ed984ba3aa638c3f088ac1edc5c779c7d9195d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 8 Mar 2024 00:32:11 +0000 Subject: 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 --- cli/main.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cli') 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); -- cgit v1.2.3