Skip to content

doc: clarify array args to Buffer.from()

Rodrigo Muino Tomonari requested to merge github/fork/bengl/bengl/bufdocarray into main

The code for Buffer.from() treats non-Buffer and non-Uint8Array Array-likes as Arrays. This creates some confusion when passing various TypedArrays to Buffer.from(). The documentation now reflects the actual behavior.

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

Merge request reports

Loading