stream: fix readable stream as async iterator function · nodejs/node@3acfe9b · GitHub
Skip to content

Commit 3acfe9b

Browse files
ErickWendeljuanarbol
authored andcommitted
stream: fix readable stream as async iterator function
Since v19.2 it's not possible to use readableStreams as async iterators (confirmed bug). This patch fixes the problem by reading the Stream.Duplex property from 'streams/duplex' instead of 'streams/legacy' module Fixes: #46141 PR-URL: #46147 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent cb5bb12 commit 3acfe9b

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

lib/stream/promises.js

Lines changed: 2 additions & 0 deletions
Lines changed: 27 additions & 0 deletions

0 commit comments

Comments
 (0)