This commit is contained in:
Ryan Cavanaugh
2018-06-05 16:28:42 -07:00
parent 11df004c2c
commit 856fc79ae7
2 changed files with 2 additions and 2 deletions

View File

@@ -618,7 +618,7 @@ namespace ts {
// A parallel array to projectReferences storing the results of reading in the referenced tsconfig files
const resolvedProjectReferences: (ResolvedProjectReference | undefined)[] | undefined = projectReferences ? [] : undefined;
const projectReferenceRedirects: Map<string> = createMap();
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
const structuralIsReused = tryReuseStructureFromOldProgram();
if (structuralIsReused !== StructureIsReused.Completely) {

View File

@@ -1155,7 +1155,7 @@ namespace vfs {
EROFS: "file system is read-only"
});
export function createIOError(code: keyof typeof IOErrorMessages, details: string = "") {
export function createIOError(code: keyof typeof IOErrorMessages, details = "") {
const err: NodeJS.ErrnoException = new Error(`${code}: ${IOErrorMessages[code]} ${details}`);
err.code = code;
if (Error.captureStackTrace) Error.captureStackTrace(err, createIOError);