BugFix Solve container security issues

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IABVWI

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
This commit is contained in:
王笑佳 2024-11-19 09:59:32 +08:00
parent 0095d534b3
commit c21a94558f
2 changed files with 0 additions and 6 deletions

View File

@ -200,9 +200,6 @@ JSHandle<TaggedArray> JSAPIDeque::OwnKeys(JSThread *thread, const JSHandle<JSAPI
uint32_t length = deque->GetSize();
JSHandle<TaggedArray> oldElements(thread, deque->GetElements());
if (oldElements->IsDictionaryMode()) {
return JSObject::GetOwnPropertyKeys(thread, JSHandle<JSObject>::Cast(deque));
}
uint32_t oldCapacity = oldElements->GetLength();
uint32_t newCapacity = ComputeCapacity(oldCapacity);
uint32_t firstIndex = deque->GetFirst();

View File

@ -158,9 +158,6 @@ JSHandle<TaggedArray> JSAPIQueue::OwnKeys(JSThread *thread, const JSHandle<JSAPI
uint32_t length = obj->GetLength().GetArrayLength();
JSHandle<TaggedArray> oldElements(thread, obj->GetElements());
if (oldElements->IsDictionaryMode()) {
return JSObject::GetOwnPropertyKeys(thread, JSHandle<JSObject>::Cast(obj));
}
uint32_t oldCapacity = oldElements->GetLength();
uint32_t newCapacity = ComputeCapacity(oldCapacity);
uint32_t front = obj->GetFront();