Skip to content

Commit

Permalink
fix: Fix clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Jul 3, 2024
1 parent a9f3a8d commit 17568e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/V8ResourceImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class V8ResourceImpl : public alt::IResource::Impl
template<class T>
v8::Local<v8::Value> GetBaseObjectOrNull(const T*& handle)
{
return GetBaseObjectOrNull(handle.Get());
return GetBaseObjectOrNull(handle->Get());
}

v8::Local<v8::Value> CreateVector3(alt::Vector3f vec);
Expand Down
2 changes: 1 addition & 1 deletion shared/helpers/Bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace V8Helpers
v8::Isolate* isolate, v8::Local<v8::Context> ctx, v8::Local<v8::Object> target, const char* name, v8::FunctionCallback slowCb, FastFunc&& fastCb, const char* className = "")
{
V8FastFunction* func = V8FastFunction::GetOrCreate(name, className, slowCb, fastCb);
target->Set(ctx, v8::String::NewFromUtf8(isolate, name), func->GetTemplate(isolate)->GetFunction(ctx).ToLocalChecked());
target->Set(ctx, v8::String::NewFromUtf8(isolate, name).ToLocalChecked(), func->GetTemplate(isolate)->GetFunction(ctx).ToLocalChecked());
}
#endif
} // namespace V8Helpers

0 comments on commit 17568e3

Please sign in to comment.