Files
node/lib
Ben Bucksch 2f00ca42bf crypto: fix wrong error message
When calling `crypto.sign()`, if the `key` parameter object is
missing the `key` property, the error message is wrong.

Before the fix:
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of
type string or an instance of Buffer, TypedArray, DataView, or
KeyObject. Received an instance of Object

Expected:
TypeError [ERR_INVALID_ARG_TYPE]: The "key.key property" argument
must be of type string or an instance of Buffer, TypedArray,
DataView, or KeyObject. Received undefined

This seems like a copy&paste bug. Somebody copied from the end of
the function, where this is correct, to here, where it's wrong.

PR-URL: https://github.com/nodejs/node/pull/33482
Fixes: https://github.com/nodejs/node/issues/33480
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
2020-05-25 19:15:05 +02:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-05-25 19:15:05 +02:00
2019-12-17 08:11:13 -05:00
2020-05-23 20:47:02 +02:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
2020-05-23 18:15:00 +02:00
2020-03-09 12:44:16 +01:00
2020-04-28 19:10:26 +02:00
2020-05-20 17:05:06 +02:00
2020-05-23 15:37:02 +02:00
2020-04-14 13:54:21 +08:00
2019-12-11 16:38:06 -06:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00