From eefed716b7f1dca729e5b25040ddb6b6ed5ab0f3 Mon Sep 17 00:00:00 2001 From: zentia <363476658@qq.com> Date: Tue, 3 Dec 2024 19:33:39 +0800 Subject: [PATCH] =?UTF-8?q?[unity]=E4=BF=AE=E5=A4=8D=E5=BD=93=E6=9F=90?= =?UTF-8?q?=E4=B8=AA=E5=B1=9E=E6=80=A7=E6=B2=A1=E6=9C=89getter=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4=E5=89=A9?= =?UTF-8?q?=E4=BD=99=E7=9A=84property=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E7=9A=84=E9=97=AE=E9=A2=98=20(#1933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unity/native_src/Src/CppObjectMapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity/native_src/Src/CppObjectMapper.cpp b/unity/native_src/Src/CppObjectMapper.cpp index 308e721a80..d974405e59 100644 --- a/unity/native_src/Src/CppObjectMapper.cpp +++ b/unity/native_src/Src/CppObjectMapper.cpp @@ -206,7 +206,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate Template->InstanceTemplate()->SetInternalFieldCount(4); JSPropertyInfo* PropertyInfo = ClassDefinition->Properties; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter) @@ -224,7 +224,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate } PropertyInfo = ClassDefinition->Variables; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter)