stream: fix toWeb typo

PR-URL: https://github.com/nodejs/node/pull/39496
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Robert Nagy committed 2021-07-25 19:32:51 +02:00
1 parent 062f8e3730
commit 79f4d5a345
1 file changed
+1 -1
+1 -1
View File
@@ -1386,5 +1386,5 @@ Readable.fromWeb = function(readableStream, options) {
};
Readable.toWeb = function(streamReadable) {
return lazyWebStreams().newStreamReadableFromReadableStream(streamReadable);
return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable);
};