From 63be40277264e71af60f9b118a2cb569e02beeab Mon Sep 17 00:00:00 2001 From: "Jeff Yang (Nay Thu Ya Aung)" <32727188+ydcjeff@users.noreply.github.com> Date: Fri, 26 Aug 2022 16:43:08 +0630 Subject: [PATCH] fix(node): change Promise.All to Promise.all (#2569) --- node/internal/streams/duplex.mjs | 4 ++-- node/internal/streams/writable.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/internal/streams/duplex.mjs b/node/internal/streams/duplex.mjs index 4d22d65bc027..d4bd2a0d9ead 100644 --- a/node/internal/streams/duplex.mjs +++ b/node/internal/streams/duplex.mjs @@ -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, @@ -290,7 +290,7 @@ export const fromWeb = Duplex.fromWeb = function (pair, options) { } if (!writableClosed || !readableClosed) { - Promise.All([ + Promise.all([ closeWriter(), closeReader(), ]).then(done, done); diff --git a/node/internal/streams/writable.mjs b/node/internal/streams/writable.mjs index 38a837381915..d9492582a701 100644 --- a/node/internal/streams/writable.mjs +++ b/node/internal/streams/writable.mjs @@ -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,