mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
visitNodesWithoutCopyingPositions always makes a new NodeArray (#59137)
This commit is contained in:
@@ -8966,7 +8966,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (result) {
|
||||
if (result.pos !== -1 || result.end !== -1) {
|
||||
if (result === nodes) {
|
||||
result = factory.createNodeArray(nodes, nodes.hasTrailingComma);
|
||||
result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
|
||||
}
|
||||
setTextRangePosEnd(result, -1, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user