diff --git a/src/streaming.ts b/src/streaming.ts index 9946eaed..15651545 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -262,7 +262,7 @@ function partition(str: string, delimiter: string): [string, string, string] { * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1624185965 */ function readableStreamAsyncIterable(stream: any): AsyncIterableIterator { - if (stream[Symbol.asyncIterator]) return stream[Symbol.asyncIterator]; + if (stream[Symbol.asyncIterator]) return stream; const reader = stream.getReader(); return {