From 932acebf5c2488b37e80a4eeb5eac6bca903f920 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 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. --- 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 b5b0e4e21cbb2e..c2433518f10685 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1595,7 +1595,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();