Skip to content

Commit

Permalink
stream: revert map spec compliance
Browse files Browse the repository at this point in the history
PR-URL: #41931
Fixes: #41926
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Robert Nagy <[email protected]>
  • Loading branch information
benjamingr authored and bengl committed Feb 21, 2022
1 parent 7fca10f commit abd6967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for (const key of ObjectKeys(streamReturningOperators)) {
value: fn,
enumerable: false,
configurable: true,
writable: false,
writable: true,
});
}
for (const key of ObjectKeys(promiseReturningOperators)) {
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-stream-iterator-helpers-test262-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import assert from 'assert';
);
assert.strictEqual(descriptor.enumerable, false);
assert.strictEqual(descriptor.configurable, true);
assert.strictEqual(descriptor.writable, false);
// assert.strictEqual(descriptor.writable, false);
}
{
// drop/length
Expand All @@ -79,7 +79,7 @@ import assert from 'assert';
);
assert.strictEqual(descriptor.enumerable, false);
assert.strictEqual(descriptor.configurable, true);
assert.strictEqual(descriptor.writable, false);
// assert.strictEqual(descriptor.writable, false);
// drop/limit-equals-total
const iterator = Readable.from([1, 2]).drop(2);
const result = await iterator[Symbol.asyncIterator]().next();
Expand Down

0 comments on commit abd6967

Please sign in to comment.