stream: revert revert map spec compliance

This reverts commit 91d28d8b46.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Benjamin Gruenbaum
2022-02-13 19:02:20 +02:00
committed by GitHub
parent 829a34ac1d
commit ceaa299958
2 changed files with 3 additions and 3 deletions

View File

@@ -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)) {

View File

@@ -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
@@ -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();