1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -05:00

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.
This commit is contained in:
Bartek Iwańczuk 2024-05-21 01:10:43 +01:00 committed by GitHub
parent 529356cc12
commit c703ddd965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()]
}
}
};