Skip to content

Commit 2e07eb8

Browse files
authored
Revert "stream: revert map spec compliance"
This reverts commit 91d28d8.
1 parent 91d28d8 commit 2e07eb8

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)