mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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>