File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2330,7 +2330,6 @@ template <class Base>
2330
2330
void SSLWrap<Base>::VerifyError (const FunctionCallbackInfo<Value>& args) {
2331
2331
Base* w;
2332
2332
ASSIGN_OR_RETURN_UNWRAP (&w, args.Holder ());
2333
- Environment* env = Environment::GetCurrent (args);
2334
2333
2335
2334
// XXX(bnoordhuis) The UNABLE_TO_GET_ISSUER_CERT error when there is no
2336
2335
// peer certificate is questionable but it's compatible with what was
@@ -2386,7 +2385,7 @@ void SSLWrap<Base>::VerifyError(const FunctionCallbackInfo<Value>& args) {
2386
2385
Local<String> reason_string = OneByteString (isolate, reason);
2387
2386
Local<Value> exception_value = Exception::Error (reason_string);
2388
2387
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 (),
2390
2389
OneByteString (isolate, code)).FromJust ();
2391
2390
args.GetReturnValue ().Set (exception_object);
2392
2391
}
You can’t perform that action at this time.
0 commit comments