Skip to content

Commit

Permalink
fix: fix manipulation (related to #1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
odiak committed May 10, 2023
1 parent c126733 commit 03e2484
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class RangeHandler implements NodeHandler {
newNodeChildren.next();

// handle the rest
while (!currentNodeChildren.done)
while (!currentNodeChildren.done && !newNodeChildren.done)
this.straightReplace(currentNodeChildren.next(), newNodeChildren.next(), newSourceFile);

// ensure the new children iterator is done too
Expand Down

0 comments on commit 03e2484

Please # to comment.