Skip to content

Commit

Permalink
change to slice for perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
iisaduan committed Jul 5, 2024
1 parent 2761af7 commit 9aeb8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8980,7 +8980,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);
}
Expand Down

0 comments on commit 9aeb8a3

Please sign in to comment.