Skip to content

Commit

Permalink
Merge branch 'main' into fix/3452/fs-walk-broken-links
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen authored Jan 6, 2024
2 parents b403074 + bd08c2b commit 532b10b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions async/mux_async_iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ export class MuxAsyncIterator<T> implements AsyncIterable<T> {
await this.#signal.promise;

// Note that while we're looping over `yields`, new items may be added.
for (let i = 0; i < this.#yields.length; i++) {
const { iterator, value } = this.#yields[i];
for (const { iterator, value } of this.#yields) {
yield value;
this.#callIteratorNext(iterator);
}
Expand Down
2 changes: 1 addition & 1 deletion bytes/equals_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Deno.test("equals() handles randomized testing", () => {
const arr3 = arr1.slice(0);
// the chance of arr1 equaling arr2 is basically 0
// but introduce an inequality at the end just in case
arr2[arr2.length - 1] = arr1[arr1.length - 1] ^ 1;
arr2[arr2.length - 1] = arr1.at(-1)! ^ 1;
// arr3 is arr1 but with an inequality in the very last element
// this is to test the equality check when length isn't a multiple of 4
arr3[arr3.length - 1] ^= 1;
Expand Down

0 comments on commit 532b10b

Please sign in to comment.