Unverified Commit 4df36525 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 f570de8e
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