Files
node/lib/internal
Khafra 4ba7370650 stream: use Buffer.from when constructor is a Buffer
When using BYOB streams, it's possible for the constructor in
readableByteStreamControllerConvertPullIntoDescriptor to be a node
Buffer. If it is, use `Buffer.from` over `new ctor`.

Fixes https://github.com/nodejs/node/issues/49245

PR-URL: https://github.com/nodejs/node/pull/49250
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-08-26 11:43:58 +00:00
..
2023-07-11 19:50:10 +03:00
2023-05-02 00:48:20 +00:00
2023-08-12 13:39:24 +02:00
2023-03-12 18:35:55 +00:00
2023-03-06 10:44:14 +01:00
2023-07-27 20:39:14 +00:00
2023-07-11 19:50:29 +03:00
…
2023-05-02 00:48:20 +00:00
…
…
2023-04-05 08:31:56 -07:00
…
2023-02-28 09:37:24 +00:00
2023-05-18 08:11:07 +00:00
…

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.