Commit 945ef21
committed
Use collection.length = lastIndex instead of pop() in swap-and-pop
Skips the unused return-value read from pop(). Semantically identical
(both truncate the array by one; the packed-array fast path is
preserved in either form). Also byte-identical to the same change in
NVP's upstream #21221, simplifying side-by-side review.1 parent a8e2cec commit 945ef21
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments