diff --git a/src/exceptions.cc b/src/exceptions.cc index d1c0794e82fde4..5924701208a311 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -137,7 +137,9 @@ Local UVException(Isolate* isolate, String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'")); } - Local e = Exception::Error(js_msg)->ToObject(isolate); + Local e = + Exception::Error(js_msg)->ToObject(isolate->GetCurrentContext()) + .ToLocalChecked(); e->Set(env->errno_string(), Integer::New(isolate, errorno)); e->Set(env->code_string(), js_code);