We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7895eee commit 15c8931Copy full SHA for 15c8931
server/src/bindings/Player.cpp
@@ -375,12 +375,9 @@ static void SetIntoVehicle(const v8::FunctionCallbackInfo<v8::Value>& info)
375
376
static void AllGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
377
{
378
- v8::Isolate* isolate = info.GetIsolate();
379
-
380
- V8ResourceImpl* resource = V8ResourceImpl::Get(isolate->GetEnteredContext());
381
- V8_CHECK(resource, "invalid resource");
+ V8_GET_ISOLATE_CONTEXT_RESOURCE();
382
383
- info.GetReturnValue().Set(resource->GetAllPlayers());
+ V8_RETURN(resource->GetAllPlayers());
384
}
385
386
static void StaticGetByID(const v8::FunctionCallbackInfo<v8::Value>& info)
0 commit comments