From d6e5b97021b90dcef636667e7770c0b7aa9ad15f Mon Sep 17 00:00:00 2001 From: Vadim Zubkov Date: Mon, 18 Mar 2024 15:15:30 +0300 Subject: [PATCH] chore: fix build --- shared/V8Entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/V8Entity.h b/shared/V8Entity.h index 4affadc6..f8c7fe29 100644 --- a/shared/V8Entity.h +++ b/shared/V8Entity.h @@ -16,7 +16,7 @@ class V8Entity V8Entity(v8::Local ctx, V8Class* __class, v8::Local 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(V8Class::InternalFields::OBJECT_CLASS), v8::External::New(isolate, reinterpret_cast(V8Class::ObjectClass::BASE_OBJECT))); obj->SetInternalField(static_cast(V8Class::InternalFields::BASE_OBJECT), v8::External::New(isolate, this)); jsVal.Reset(isolate, obj); }