diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7ac4bb7d5a52b..8cde71cd89169 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -27022,7 +27022,9 @@ namespace ts { case AssignmentDeclarationKind.ExportsProperty: case AssignmentDeclarationKind.Prototype: case AssignmentDeclarationKind.PrototypeProperty: - let valueDeclaration = binaryExpression.left.symbol?.valueDeclaration; + // TODO: this crashes in ES6 + // eslint-disable-next-line no-var + var valueDeclaration = binaryExpression.left.symbol?.valueDeclaration; // falls through case AssignmentDeclarationKind.ModuleExports: valueDeclaration ||= binaryExpression.symbol?.valueDeclaration; diff --git a/src/services/services.ts b/src/services/services.ts index ecd7eae9530c9..ec60914d44161 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1374,7 +1374,9 @@ namespace ts { // the program points to old source files that have been invalidated because of // incremental parsing. - const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); + // TODO: this crashes in ES6 + // eslint-disable-next-line no-var + var documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); const options: CreateProgramOptions = { rootNames: rootFileNames, options: newSettings,