From c21a94558f563f0bbc1520ff67829061a52b7853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AC=91=E4=BD=B3?= Date: Tue, 19 Nov 2024 09:59:32 +0800 Subject: [PATCH] BugFix Solve container security issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IABVWI Signed-off-by: 王笑佳 --- ecmascript/js_api/js_api_deque.cpp | 3 --- ecmascript/js_api/js_api_queue.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/ecmascript/js_api/js_api_deque.cpp b/ecmascript/js_api/js_api_deque.cpp index 4210d27758..f6b6c59ad2 100644 --- a/ecmascript/js_api/js_api_deque.cpp +++ b/ecmascript/js_api/js_api_deque.cpp @@ -200,9 +200,6 @@ JSHandle JSAPIDeque::OwnKeys(JSThread *thread, const JSHandleGetSize(); JSHandle oldElements(thread, deque->GetElements()); - if (oldElements->IsDictionaryMode()) { - return JSObject::GetOwnPropertyKeys(thread, JSHandle::Cast(deque)); - } uint32_t oldCapacity = oldElements->GetLength(); uint32_t newCapacity = ComputeCapacity(oldCapacity); uint32_t firstIndex = deque->GetFirst(); diff --git a/ecmascript/js_api/js_api_queue.cpp b/ecmascript/js_api/js_api_queue.cpp index 8fa9aaffb6..09e4c60d15 100644 --- a/ecmascript/js_api/js_api_queue.cpp +++ b/ecmascript/js_api/js_api_queue.cpp @@ -158,9 +158,6 @@ JSHandle JSAPIQueue::OwnKeys(JSThread *thread, const JSHandleGetLength().GetArrayLength(); JSHandle oldElements(thread, obj->GetElements()); - if (oldElements->IsDictionaryMode()) { - return JSObject::GetOwnPropertyKeys(thread, JSHandle::Cast(obj)); - } uint32_t oldCapacity = oldElements->GetLength(); uint32_t newCapacity = ComputeCapacity(oldCapacity); uint32_t front = obj->GetFront();