Skip to content

Commit f4a87a4

Browse files
trivikrjasnell
andcommitted
stream: swap done and value while resolving pending reads
Co-authored-by: James M Snell <jasnell@gmail.com>
1 parent d513365 commit f4a87a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/streams/iter/push.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ class PushQueue {
541541
#resolvePendingReadsDone() {
542542
while (this.#pendingReads.length > 0) {
543543
this.#pendingReads.shift().resolve(
544-
{ __proto__: null, value: undefined, done: true });
544+
{ __proto__: null, done: true, value: undefined });
545545
}
546546
}
547547

0 commit comments

Comments
 (0)