summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-09-23 08:14:35 +0200
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2020-02-06 02:49:32 +0000
commitae3459af9f1a1026ba25b7cde3a80357c73d6d39 (patch)
treed5d225d4ea74ffa5d525baf32da4ebc5f7cfa0b8 /test
parent5cb0de948dde157f007a1bbbd9337859112a5b0f (diff)
downloadnode-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