mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
visitNodesWithoutCopyingPositions always makes a new NodeArray (#59137)
This commit is contained in:
1 parent
0206f9fa6e
commit
66a762f59d
2 files changed
+39
-1
No files matched your search
@@ -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