Remove target=es3 (#57525)

This commit is contained in:
Jake Bailey
2024-02-27 11:40:18 -08:00
committed by GitHub
parent 23156cb970
commit 65de938e4e
397 changed files with 324 additions and 2291 deletions
-4
View File
@@ -4366,10 +4366,6 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
}
}
if (options.useDefineForClassFields && languageVersion === ScriptTarget.ES3) {
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, "useDefineForClassFields");
}
if (options.checkJs && !getAllowJSCompilerOption(options)) {
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"));
}