src: fix type name in comment
The comment refers to an exception type that JS land throws on the C++ code's behalf but apparently I changed the JS name before landing the pull request and forgot to update the comment. Refs: https://github.com/nodejs/node/pull/20816 PR-URL: https://github.com/nodejs/node/pull/28320 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
This commit is contained in:
parent
4daf153eed
commit
35788c8c18
@ -6085,7 +6085,7 @@ void Scrypt(const FunctionCallbackInfo<Value>& args) {
|
|||||||
// EVP_PBE_scrypt() does not always put errors on the error stack
|
// EVP_PBE_scrypt() does not always put errors on the error stack
|
||||||
// and therefore ToResult() may or may not return an exception
|
// and therefore ToResult() may or may not return an exception
|
||||||
// object. Return a sentinel value to inform JS land it should
|
// object. Return a sentinel value to inform JS land it should
|
||||||
// throw an ERR_CRYPTO_SCRYPT_PARAMETER_ERROR on our behalf.
|
// throw an ERR_CRYPTO_SCRYPT_INVALID_PARAMETER on our behalf.
|
||||||
auto result = job->ToResult();
|
auto result = job->ToResult();
|
||||||
if (result->IsUndefined()) result = Null(args.GetIsolate());
|
if (result->IsUndefined()) result = Null(args.GetIsolate());
|
||||||
return args.GetReturnValue().Set(result);
|
return args.GetReturnValue().Set(result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user