File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ class CompilerBaselineRunner extends RunnerBase {
136136
137137 // check errors
138138 it ( "Correct errors for " + fileName , ( ) => {
139- if ( this . errors ) {
140- Harness . Compiler . doErrorBaseline ( justName , toBeCompiled . concat ( otherFiles ) , result . errors ) ;
141- }
139+ Harness . Compiler . doErrorBaseline ( justName , toBeCompiled . concat ( otherFiles ) , result . errors ) ;
142140 } ) ;
143141
144142 it ( `Correct module resolution tracing for ${ fileName } ` , ( ) => {
Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ namespace Harness {
14071407
14081408 export function doErrorBaseline ( baselinePath : string , inputFiles : TestFile [ ] , errors : ts . Diagnostic [ ] ) {
14091409 Harness . Baseline . runBaseline ( baselinePath . replace ( / \. t s x ? $ / , ".errors.txt" ) , ( ) : string => {
1410- if ( errors . length === 0 ) {
1410+ if ( ! errors || ( errors . length === 0 ) ) {
14111411 /* tslint:disable:no-null-keyword */
14121412 return null ;
14131413 /* tslint:enable:no-null-keyword */
You can’t perform that action at this time.
0 commit comments