Skip to content

Commit

Permalink
chore: force import assertion support (#23855)
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
bartlomieju committed May 21, 2024
1 parent 529356c commit c703ddd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
}
}
};
Expand Down

0 comments on commit c703ddd

Please sign in to comment.