Skip to content

Commit

Permalink
Revert "stream: revert map spec compliance"
Browse files Browse the repository at this point in the history
This reverts commit 91d28d8.
  • Loading branch information
benjamingr authored Feb 11, 2022
1 parent 91d28d8 commit 2e07eb8
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: true,
writable: false,
});
}
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 2e07eb8

Please sign in to comment.