From 35788c8c18ca13dcb72f82f156dea62d0d3822c3 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 20 Jun 2019 10:36:32 +0200 Subject: [PATCH] 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 Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Anto Aravinth --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 590c6d1c374c08..8a2ec41161c759 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -6085,7 +6085,7 @@ void Scrypt(const FunctionCallbackInfo& args) { // EVP_PBE_scrypt() does not always put errors on the error stack // and therefore ToResult() may or may not return an exception // 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(); if (result->IsUndefined()) result = Null(args.GetIsolate()); return args.GetReturnValue().Set(result);