diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 7929d3b445..5ebcf6be13 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -312,7 +312,7 @@ delete Object.prototype.__proto__; releaseDocumentWithKey(path, key, _scriptKind, _impliedNodeFormat) { const mapKey = path + key; - documentRegistrySourceFileCache.remove(mapKey); + documentRegistrySourceFileCache.delete(mapKey); }, reportStats() {