mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
GitHub
parent
829a34ac1d
commit
ceaa299958
@@ -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)) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user