From 79f4d5a34537def5c5555332eafabfd6577ccc5b Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 23 Jul 2021 09:42:02 +0200 Subject: [PATCH] stream: fix toWeb typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39496 Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen --- lib/internal/streams/readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/readable.js b/lib/internal/streams/readable.js index c789a51a4b3cdb..e7dd60a6d78c13 100644 --- a/lib/internal/streams/readable.js +++ b/lib/internal/streams/readable.js @@ -1386,5 +1386,5 @@ Readable.fromWeb = function(readableStream, options) { }; Readable.toWeb = function(streamReadable) { - return lazyWebStreams().newStreamReadableFromReadableStream(streamReadable); + return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable); };