We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2d3445 commit 315bf25Copy full SHA for 315bf25
src/node_crypto.cc
@@ -2164,7 +2164,8 @@ void SSLWrap<Base>::VerifyError(const FunctionCallbackInfo<Value>& args) {
2164
Isolate* isolate = args.GetIsolate();
2165
Local<String> reason_string = OneByteString(isolate, reason);
2166
Local<Value> exception_value = Exception::Error(reason_string);
2167
- Local<Object> exception_object = exception_value->ToObject(isolate);
+ Local<Object> exception_object =
2168
+ exception_value->ToObject(isolate->GetCurrentContext()).ToLocalChecked();
2169
exception_object->Set(w->env()->context(), w->env()->code_string(),
2170
OneByteString(isolate, code)).FromJust();
2171
args.GetReturnValue().Set(exception_object);
0 commit comments