Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzz-dev committed Mar 18, 2024
1 parent f87467d commit d6e5b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/V8Entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class V8Entity
V8Entity(v8::Local<v8::Context> ctx, V8Class* __class, v8::Local<v8::Object> obj, alt::IBaseObject* _handle) : _class(__class), handle(_handle)
{
v8::Isolate* isolate = v8::Isolate::GetCurrent();
V8Helpers::SetObjectClass(isolate, obj, V8Class::ObjectClass::BASE_OBJECT);
obj->SetInternalField(static_cast<int>(V8Class::InternalFields::OBJECT_CLASS), v8::External::New(isolate, reinterpret_cast<void*>(V8Class::ObjectClass::BASE_OBJECT)));
obj->SetInternalField(static_cast<int>(V8Class::InternalFields::BASE_OBJECT), v8::External::New(isolate, this));
jsVal.Reset(isolate, obj);
}
Expand Down

0 comments on commit d6e5b97

Please sign in to comment.