Remove error message in node16 (#50673)

This commit is contained in:
Wesley Wigham
2022-09-07 18:47:39 -07:00
committed by GitHub
parent ab831d0180
commit f46a680863
2 changed files with 2 additions and 5 deletions

View File

@@ -45775,7 +45775,7 @@ namespace ts {
}
const nodeArguments = node.arguments;
if (moduleKind !== ModuleKind.ESNext && moduleKind !== ModuleKind.NodeNext) {
if (moduleKind !== ModuleKind.ESNext && moduleKind !== ModuleKind.NodeNext && moduleKind !== ModuleKind.Node16) {
// We are allowed trailing comma after proposal-import-assertions.
checkGrammarForDisallowedTrailingComma(nodeArguments);