diff --git a/src/node_crypto.cc b/src/node_crypto.cc index ba693377a77bc9..af892d4367c5da 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1290,7 +1290,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();