stream: swap the order of stream/iter result fields

Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66504
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
James M Snell authored and Antoine du Hamel committed 2026-11-23 12:34:28 +01:00
1 parent 8d2339dd6e
commit 689049e37b
1 file changed
+1 -1
+1 -1
View File
@@ -173,7 +173,7 @@ const kReadFailed = Symbol('kReadFailed');
const kSetReadHandlers = Symbol('kSetReadHandlers');
const kRead = Symbol('kRead');
// The result kReadUncancellable gives once the source is done.
const kDoneSourceResult = ObjectFreeze({ __proto__: null, done: true, value: undefined });
const kDoneSourceResult = ObjectFreeze({ __proto__: null, value: undefined, done: true });
function createNormalizationIterator(createIterator) {
const context = createNormalizationContext();