Skip to content

Commit 6cfc9be

Browse files
committed
Apply changes with Array
1 parent 8ad4f35 commit 6cfc9be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/source/blockedsource.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ export class BlockedSource extends BaseSource {
110110
}
111111

112112
// Actually await all pending requests that are needed for this `fetch`.
113-
await Promise.allSettled(blockRequests.values());
114-
await Promise.allSettled(missingRequests.values());
113+
await Promise.allSettled(blockRequests);
114+
await Promise.allSettled(missingRequests);
115115

116116
// Perform retries if a block was interrupted by a previous signal
117117
const abortedBlockRequests = [];
@@ -128,7 +128,7 @@ export class BlockedSource extends BaseSource {
128128
}
129129
abortedBlockRequests.push(block);
130130
}
131-
await Promise.allSettled(Array.from(abortedBlockRequests.values()));
131+
await Promise.allSettled(abortedBlockRequests);
132132
}
133133

134134
// throw an abort error
@@ -186,7 +186,7 @@ export class BlockedSource extends BaseSource {
186186
// store the signal here, we need it to determine later if an
187187
// error was caused by this signal
188188
err.signal = signal;
189-
this.blockCache.del(blockId);
189+
this.blockCache.delete(blockId);
190190
this.abortedBlockIds.add(blockId);
191191
} else {
192192
throw err;

0 commit comments

Comments
 (0)