Skip to content

Commit 71ac8e9

Browse files
Bump to 1.8.7.
1 parent dc4cd52 commit 71ac8e9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "http://typescriptlang.org/",
5-
"version": "1.8.5",
5+
"version": "1.8.7",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

src/compiler/program.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace ts {
1212

1313
const emptyArray: any[] = [];
1414

15-
export const version = "1.8.5";
15+
export const version = "1.8.7";
1616

1717
export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean): string {
1818
let fileName = "tsconfig.json";
@@ -77,7 +77,7 @@ namespace ts {
7777

7878
/**
7979
* @param {boolean} onlyRecordFailures - if true then function won't try to actually load files but instead record all attempts as failures. This flag is necessary
80-
* in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.
80+
* in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.
8181
*/
8282
function loadNodeModuleFromFile(extensions: string[], candidate: string, failedLookupLocation: string[], onlyRecordFailures: boolean, host: ModuleResolutionHost): string {
8383
return forEach(extensions, tryLoad);
@@ -106,7 +106,7 @@ namespace ts {
106106
jsonContent = jsonText ? <{ typings?: string }>JSON.parse(jsonText) : { typings: undefined };
107107
}
108108
catch (e) {
109-
// gracefully handle if readFile fails or returns not JSON
109+
// gracefully handle if readFile fails or returns not JSON
110110
jsonContent = { typings: undefined };
111111
}
112112

@@ -181,7 +181,7 @@ namespace ts {
181181
searchName = normalizePath(combinePaths(searchPath, moduleName));
182182
referencedSourceFile = forEach(supportedExtensions, extension => {
183183
if (extension === ".tsx" && !compilerOptions.jsx) {
184-
// resolve .tsx files only if jsx support is enabled
184+
// resolve .tsx files only if jsx support is enabled
185185
// 'logical not' handles both undefined and None cases
186186
return undefined;
187187
}
@@ -382,7 +382,7 @@ namespace ts {
382382

383383
const filesByName = createFileMap<SourceFile>();
384384
// stores 'filename -> file association' ignoring case
385-
// used to track cases when two file names differ only in casing
385+
// used to track cases when two file names differ only in casing
386386
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? createFileMap<SourceFile>(fileName => fileName.toLowerCase()) : undefined;
387387

388388
if (oldProgram) {
@@ -980,7 +980,7 @@ namespace ts {
980980
}
981981

982982
// TypeScript 1.0 spec (April 2014): 12.1.6
983-
// An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference other external modules
983+
// An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference other external modules
984984
// only through top - level external module names. Relative external module names are not permitted.
985985
if (!inAmbientModule || !isExternalModuleNameRelative((<LiteralExpression>moduleNameExpr).text)) {
986986
(imports || (imports = [])).push(<LiteralExpression>moduleNameExpr);
@@ -998,7 +998,7 @@ namespace ts {
998998
(moduleAugmentations || (moduleAugmentations = [])).push(moduleName);
999999
}
10001000
else if (!inAmbientModule) {
1001-
// An AmbientExternalModuleDeclaration declares an external module.
1001+
// An AmbientExternalModuleDeclaration declares an external module.
10021002
// This type of declaration is permitted only in the global module.
10031003
// The StringLiteral must specify a top - level external module name.
10041004
// Relative external module names are not permitted

0 commit comments

Comments
 (0)