src: fix ToObject() usage in exceptions.cc
PR-URL: https://github.com/nodejs/node/pull/23314 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
a8530bc4e0
commit
59d2bd9fb5
@ -128,7 +128,9 @@ Local<Value> UVException(Isolate* isolate,
|
||||
String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'"));
|
||||
}
|
||||
|
||||
Local<Object> e = Exception::Error(js_msg)->ToObject(isolate);
|
||||
Local<Object> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user