JS: Remove ineffective TypeScript project memory checks · github/codeql@b0062cf · GitHub
Skip to content

Commit b0062cf

Browse files
paldepindCopilot
andcommitted
JS: Remove ineffective TypeScript project memory checks
`checkMemoryUsage` can only reclaim compiler state by calling `state.project.reload()`, but `state.project` is initialized to `null` and is never assigned. The reload branch therefore cannot run, even when the configured memory threshold is exceeded. Remove the check, its threshold bookkeeping, and the now-unused environment reader. This removes no effective memory protection from single-file parsing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 20e67a1f-bf8e-4e8f-947a-37804de79e08
1 parent b5c9e56 commit b0062cf

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

  • javascript/extractor/lib/typescript/src

‎javascript/extractor/lib/typescript/src/main.ts‎

Lines changed: 0 additions & 34 deletions

0 commit comments

Comments
 (0)