Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit befb163

Browse filesBrowse files
danbevgibfahn
authored andcommitted
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. PR-URL: #17521 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent e515355 commit befb163
Copy full SHA for befb163

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ void SecureContext::GetCertificate(const FunctionCallbackInfo<Value>& args) {
13561356
else
13571357
cert = wrap->issuer_;
13581358
if (cert == nullptr)
1359-
return args.GetReturnValue().Set(Null(env->isolate()));
1359+
return args.GetReturnValue().SetNull();
13601360

13611361
int size = i2d_X509(cert, nullptr);
13621362
Local<Object> buff = Buffer::New(env, size).ToLocalChecked();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.