clear runtime code

description:clear runtime code

issue:https://gitee.com/openharmony/arkcompiler_toolchain/issues/I7MO39

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
This commit is contained in:
buzhuyu 2023-07-20 15:58:41 +08:00
parent 8b004c8b24
commit 9d1a365a6a

View File

@ -280,7 +280,7 @@ DispatchResponse RuntimeImpl::GetProperties(const GetPropertiesParams &params,
}
Local<ArrayRef> keys = Local<ObjectRef>(value)->GetOwnPropertyNames(vm_);
int32_t length = keys->Length(vm_);
int32_t length = static_cast<int32_t>(keys->Length(vm_));
Local<JSValueRef> name = JSValueRef::Undefined(vm_);
for (int32_t i = 0; i < length; ++i) {
name = keys->Get(vm_, i);