mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-20 23:00:29 -04:00
fix container using error and gc bug
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
This commit is contained in:
@@ -190,8 +190,8 @@ void JSArray::SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uin
|
||||
uint32_t attr = dictHandle->GetAttributes(entry).GetValue();
|
||||
PropertyAttributes propAttr(attr);
|
||||
if (propAttr.IsConfigurable()) {
|
||||
NumberDictionary *dictionary = NumberDictionary::Remove(thread, dictHandle, entry);
|
||||
array->SetElements(thread, JSTaggedValue(dictionary));
|
||||
NumberDictionary *newDict = NumberDictionary::Remove(thread, dictHandle, entry);
|
||||
array->SetElements(thread, JSTaggedValue(newDict));
|
||||
if (i == 0) {
|
||||
newNumOfElements = i;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user