diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-09-23 08:14:35 +0200 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2020-02-06 02:49:32 +0000 |
commit | ae3459af9f1a1026ba25b7cde3a80357c73d6d39 (patch) | |
tree | d5d225d4ea74ffa5d525baf32da4ebc5f7cfa0b8 /test | |
parent | 5cb0de948dde157f007a1bbbd9337859112a5b0f (diff) | |
download | node-new-ae3459af9f1a1026ba25b7cde3a80357c73d6d39.tar.gz |
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: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions