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,