File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2330,7 +2330,6 @@ template <class Base>
23302330void 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}
You can’t perform that action at this time.
0 commit comments