Skip to content

Commit ceaa299

Browse files
authored
stream: revert revert map spec compliance
This reverts commit 91d28d8. PR-URL: #41933 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 829a34a commit ceaa299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ for (const key of ObjectKeys(streamReturningOperators)) {
6969
value: fn,
7070
enumerable: false,
7171
configurable: true,
72-
writable: true,
72+
writable: false,
7373
});
7474
}
7575
for (const key of ObjectKeys(promiseReturningOperators)) {

test/parallel/test-stream-iterator-helpers-test262-tests.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import assert from 'assert';
6868
);
6969
assert.strictEqual(descriptor.enumerable, false);
7070
assert.strictEqual(descriptor.configurable, true);
71-
// assert.strictEqual(descriptor.writable, false);
71+
assert.strictEqual(descriptor.writable, false);
7272
}
7373
{
7474
// drop/length
@@ -79,7 +79,7 @@ import assert from 'assert';
7979
);
8080
assert.strictEqual(descriptor.enumerable, false);
8181
assert.strictEqual(descriptor.configurable, true);
82-
// assert.strictEqual(descriptor.writable, false);
82+
assert.strictEqual(descriptor.writable, false);
8383
// drop/limit-equals-total
8484
const iterator = Readable.from([1, 2]).drop(2);
8585
const result = await iterator[Symbol.asyncIterator]().next();

0 commit comments

Comments
 (0)