From c703ddd965655fc4482a1fd959baee61bb26097c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 21 May 2024 01:10:43 +0100 Subject: [PATCH] chore: force import assertion support (#23855) https://github.com/denoland/deno/pull/23838 might accidentally disable import assertions support because of V8 12.6 unshipping it, but we want import assertions to be supported until Deno 2. --- cli/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/main.rs b/cli/main.rs index 0abbc2a37d..44e9d31fd5 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -405,7 +405,10 @@ fn resolve_flags_and_init( // TODO(petamoriken): Need to check TypeScript `assert` keywords in deno_ast vec!["--no-harmony-import-assertions".to_string()] } else { - vec![] + // If we're still in v1.X version we want to support import assertions. + // V8 12.6 unshipped the support by default, so force it by passing a + // flag. + vec!["--harmony-import-assertions".to_string()] } } };