refactor(compiler): Fix a bug in OpList.replaceWithMany (#51876)

Fix a bug where replaceWithMany was incorrectly setting the previous
item

PR Close #51876
This commit is contained in:
Miles Malerba 2023-09-24 10:44:15 -07:00 committed by Alex Rickabaugh
parent 4590138639
commit 8f1feb6036

View file

@ -245,7 +245,7 @@ export class OpList<OpT extends Op<OpT>> {
// Replace `oldOp` with the chain `first` -> `last`.
if (oldPrev !== null) {
oldPrev.next = first;
first.prev = oldOp.prev;
first.prev = oldPrev;
}
if (oldNext !== null) {