diff --git a/lib/internal/streams/iter/push.js b/lib/internal/streams/iter/push.js index 8b6eb2da536..f5d5e38f006 100644 --- a/lib/internal/streams/iter/push.js +++ b/lib/internal/streams/iter/push.js @@ -26,6 +26,7 @@ const { const { drainableProtocol, + kValidatedSource, } = require('internal/streams/iter/types'); const { @@ -734,6 +735,9 @@ class PushWriter { function createReadable(queue) { return { __proto__: null, + // The batches read are validated already: from() and pipeTo() can read + // them without normalizing them again. + [kValidatedSource]: true, [SymbolAsyncIterator]() { return ObjectSetPrototypeOf({ async next() {