Skip to content

Commit

Permalink
fix(node): change Promise.All to Promise.all (#2569)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff authored Aug 26, 2022
1 parent d9a796e commit 63be402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/internal/streams/duplex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const fromWeb = Duplex.fromWeb = function (pair, options) {

writer.ready.then(
() =>
Promise.All(
Promise.all(
chunks.map((data) => writer.write(data.chunk)),
).then(done, done),
done,
Expand Down Expand Up @@ -290,7 +290,7 @@ export const fromWeb = Duplex.fromWeb = function (pair, options) {
}

if (!writableClosed || !readableClosed) {
Promise.All([
Promise.all([
closeWriter(),
closeReader(),
]).then(done, done);
Expand Down
2 changes: 1 addition & 1 deletion node/internal/streams/writable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ export const fromWeb = Writable.fromWeb = function (

writer.ready.then(
() =>
Promise.All(
Promise.all(
chunks.map((data) => writer.write(data.chunk)),
).then(done, done),
done,
Expand Down

0 comments on commit 63be402

Please sign in to comment.