From abafdaed39522d73ce7dd523dcd5436a5da108c5 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 6 Dec 2017 14:26:08 +0100 Subject: [PATCH] crypto: use SetNull instead of Set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates the only usage of Set(Null(env->isolate()) to use SetNull() instead which is used in other places in node_crypto.cc. PR-URL: https://github.com/nodejs/node/pull/17521 Reviewed-By: Anna Henningsen Reviewed-By: Anatoli Papirovski Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen --- 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 5937c8d2ebd71d..72fd05c2ecd5a5 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1602,7 +1602,7 @@ void SecureContext::GetCertificate(const FunctionCallbackInfo& args) { else cert = wrap->issuer_; if (cert == nullptr) - return args.GetReturnValue().Set(Null(env->isolate())); + return args.GetReturnValue().SetNull(); int size = i2d_X509(cert, nullptr); Local buff = Buffer::New(env, size).ToLocalChecked();