mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
stream: revert map spec compliance
PR-URL: https://github.com/nodejs/node/pull/41931 Fixes: https://github.com/nodejs/node/issues/41926 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
This commit is contained in:
parent
08938a1531
commit
91d28d8b46
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user