Skip to content

Commit 689049e

Browse files
jasnelladuh95
authored andcommitted
stream: swap the order of stream/iter result fields
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #66504 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 8d2339d commit 689049e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/internal/streams/iter/from.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const kReadFailed = Symbol('kReadFailed');
173173
const kSetReadHandlers = Symbol('kSetReadHandlers');
174174
const kRead = Symbol('kRead');
175175
// The result kReadUncancellable gives once the source is done.
176-
const kDoneSourceResult = ObjectFreeze({ __proto__: null, done: true, value: undefined });
176+
const kDoneSourceResult = ObjectFreeze({ __proto__: null, value: undefined, done: true });
177177

178178
function createNormalizationIterator(createIterator) {
179179
const context = createNormalizationContext();

0 commit comments

Comments
 (0)