Unverified Commit fc28761d authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

buffer: improve .from() error details

This makes sure the original input is passed to the error in case
no matching inputs are found. Instead of passing along all values,
only valid or possibliy valid values are passed through. That way
invalid values end up in the error case with the original input.

PR-URL: https://github.com/nodejs/node/pull/29675


Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
parent fcd4c2e3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment