mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
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:
parent
0095d534b3
commit
c21a94558f
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user