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();