mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-21 13:14:43 -06:00
getOrCreateEmitNode() assumes that the SourceFile of node that is part of a parse tree will also be a parse tree node. This assumption is not valid for a transformed SourceFile. disposeEmitNodes() already handles this case by getting the original SourceFile node if the provided node is synthesized, so do the same in getOrCreateEmitNode(). This results in the test case in #24709 to run without error.