Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ba42d57

Browse files
committedJan 31, 2018
squash: remove env var in VerifyError
1 parent 5a1a656 commit ba42d57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/node_crypto.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,6 @@ template <class Base>
23302330
void SSLWrap<Base>::VerifyError(const FunctionCallbackInfo<Value>& args) {
23312331
Base* w;
23322332
ASSIGN_OR_RETURN_UNWRAP(&w, args.Holder());
2333-
Environment* env = Environment::GetCurrent(args);
23342333

23352334
// XXX(bnoordhuis) The UNABLE_TO_GET_ISSUER_CERT error when there is no
23362335
// peer certificate is questionable but it's compatible with what was
@@ -2386,7 +2385,7 @@ void SSLWrap<Base>::VerifyError(const FunctionCallbackInfo<Value>& args) {
23862385
Local<String> reason_string = OneByteString(isolate, reason);
23872386
Local<Value> exception_value = Exception::Error(reason_string);
23882387
Local<Object> exception_object = exception_value->ToObject(isolate);
2389-
exception_object->Set(env->context(), w->env()->code_string(),
2388+
exception_object->Set(w->env()->context(), w->env()->code_string(),
23902389
OneByteString(isolate, code)).FromJust();
23912390
args.GetReturnValue().Set(exception_object);
23922391
}

0 commit comments

Comments
 (0)
Please sign in to comment.