diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 4f50aa3ab1f59..85290ab6eb73b 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2707,10 +2707,6 @@ namespace ts { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, getEmitDeclarationOptionName(options), "isolatedModules"); } - if (options.noEmitOnError) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noEmitOnError", "isolatedModules"); - } - if (options.out) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "out", "isolatedModules"); } diff --git a/tests/baselines/reference/isolatedModulesNoEmitOnError.errors.txt b/tests/baselines/reference/isolatedModulesNoEmitOnError.errors.txt deleted file mode 100644 index 34ff251c16701..0000000000000 --- a/tests/baselines/reference/isolatedModulesNoEmitOnError.errors.txt +++ /dev/null @@ -1,6 +0,0 @@ -error TS5053: Option 'noEmitOnError' cannot be specified with option 'isolatedModules'. - - -!!! error TS5053: Option 'noEmitOnError' cannot be specified with option 'isolatedModules'. -==== tests/cases/compiler/file1.ts (0 errors) ==== - export var x; \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesNoEmitOnError.js b/tests/baselines/reference/isolatedModulesNoEmitOnError.js new file mode 100644 index 0000000000000..2963a9d694fbf --- /dev/null +++ b/tests/baselines/reference/isolatedModulesNoEmitOnError.js @@ -0,0 +1,5 @@ +//// [file1.ts] +export var x; + +//// [file1.js] +export var x;