Lines Matching full:thread
26 JSThread *thread = argv->GetThread(); in PlainArrayConstructor() local
27 BUILTINS_API_TRACE(thread, PlainArray, Constructor); in PlainArrayConstructor()
28 [[maybe_unused]] EcmaHandleScope handleScope(thread); in PlainArrayConstructor()
29 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in PlainArrayConstructor()
33 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in PlainArrayConstructor()
35 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in PlainArrayConstructor()
39 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in PlainArrayConstructor()
42 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor()
44 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor()
45 plainArray->SetKeys(thread, keys); in PlainArrayConstructor()
46 plainArray->SetValues(thread, values); in PlainArrayConstructor()
53 JSThread *thread = argv->GetThread(); in Add() local
54 BUILTINS_API_TRACE(thread, PlainArray, Add); in Add()
55 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
58 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Add()
59 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add()
61 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add()
63 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add()
69 … key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Add()
72 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, key.GetTaggedValue()); in Add()
73 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Add()
75 …The type of \"key\" must be small integer. Received value is: " + ConvertToString(thread, *result); in Add()
76 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Add()
77 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add()
79 JSAPIPlainArray::Add(thread, JSHandle<JSAPIPlainArray>::Cast(self), key, value); in Add()
86 JSThread *thread = argv->GetThread(); in Clear() local
87 BUILTINS_API_TRACE(thread, PlainArray, Clear); in Clear()
88 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
91 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Clear()
92 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Clear()
94 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
96 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
100 array->Clear(thread); in Clear()
107 JSThread *thread = argv->GetThread(); in Clone() local
108 BUILTINS_API_TRACE(thread, PlainArray, Clone); in Clone()
109 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clone()
112 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Clone()
113 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Clone()
115 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clone()
117 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clone()
121 JSAPIPlainArray::Clone(thread, JSHandle<JSAPIPlainArray>::Cast(self)); in Clone()
128 JSThread *thread = argv->GetThread(); in Has() local
129 BUILTINS_API_TRACE(thread, PlainArray, Has); in Has()
130 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Has()
133 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Has()
134 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Has()
136 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Has()
138 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has()
143 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in Has()
146 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in Has()
147 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Has()
149 …The type of \"key\" must be small integer. Received value is: " + ConvertToString(thread, *result); in Has()
150 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Has()
151 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has()
155 bool result = array->Has(thread, key); in Has()
162 JSThread *thread = argv->GetThread(); in Get() local
163 BUILTINS_API_TRACE(thread, PlainArray, Get); in Get()
164 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Get()
167 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Get()
168 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Get()
170 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Get()
172 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
177 … key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Get()
180 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, key.GetTaggedValue()); in Get()
181 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Get()
183 …The type of \"key\" must be small integer. Received value is: " + ConvertToString(thread, *result); in Get()
184 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Get()
185 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
188 JSTaggedValue value = array->Get(thread, key.GetTaggedValue()); in Get()
196 JSThread *thread = argv->GetThread(); in GetIteratorObj() local
197 BUILTINS_API_TRACE(thread, PlainArray, GetIteratorObj); in GetIteratorObj()
198 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorObj()
201 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetIteratorObj()
202 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIteratorObj()
204 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIteratorObj()
206 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIteratorObj()
210 …JSAPIPlainArray::GetIteratorObj(thread, JSHandle<JSAPIPlainArray>::Cast(self), IterationKind::KEY_… in GetIteratorObj()
217 JSThread *thread = argv->GetThread(); in ForEach() local
218 BUILTINS_API_TRACE(thread, PlainArray, ForEach); in ForEach()
221 …if (thisHandle->IsJSProxy() && JSHandle<JSProxy>::Cast(thisHandle)->GetTarget(thread).IsJSAPIPlain… in ForEach()
222 …thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget(thread… in ForEach()
224 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
226 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
231 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle.GetTaggedValue()); in ForEach()
232 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
234 …e type of \"callbackfn\" must be callable. Received value is: " + ConvertToString(thread, *result); in ForEach()
235 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
236 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
239 return JSAPIPlainArray::ForEach(thread, thisHandle, callbackFnHandle, thisArgHandle); in ForEach()
245 JSThread *thread = argv->GetThread(); in ToString() local
246 BUILTINS_API_TRACE(thread, PlainArray, ToString); in ToString()
249 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in ToString()
250 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in ToString()
252 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToString()
254 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToString()
257 JSTaggedValue value = JSAPIPlainArray::ToString(thread, JSHandle<JSAPIPlainArray>::Cast(self)); in ToString()
264 JSThread *thread = argv->GetThread(); in GetIndexOfKey() local
265 BUILTINS_API_TRACE(thread, PlainArray, GetIndexOfKey); in GetIndexOfKey()
268 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetIndexOfKey()
269 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIndexOfKey()
271 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfKey()
273 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfKey()
278 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in GetIndexOfKey()
281 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in GetIndexOfKey()
282 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetIndexOfKey()
284 …The type of \"key\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetIndexOfKey()
285 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetIndexOfKey()
286 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfKey()
290 JSTaggedValue result = array->GetIndexOfKey(thread, key); in GetIndexOfKey()
297 JSThread *thread = argv->GetThread(); in GetIndexOfValue() local
298 BUILTINS_API_TRACE(thread, PlainArray, GetIndexOfValue); in GetIndexOfValue()
301 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetIndexOfValue()
302 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIndexOfValue()
304 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfValue()
306 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfValue()
311 JSTaggedValue jsValue = array->GetIndexOfValue(thread, value.GetTaggedValue()); in GetIndexOfValue()
318 JSThread *thread = argv->GetThread(); in IsEmpty() local
319 BUILTINS_API_TRACE(thread, PlainArray, IsEmpty); in IsEmpty()
322 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in IsEmpty()
323 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IsEmpty()
325 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
327 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
338 JSThread *thread = argv->GetThread(); in GetKeyAt() local
339 BUILTINS_API_TRACE(thread, PlainArray, GetKeyAt); in GetKeyAt()
342 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetKeyAt()
343 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetKeyAt()
345 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetKeyAt()
347 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
352 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in GetKeyAt()
355 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in GetKeyAt()
356 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetKeyAt()
358 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetKeyAt()
359 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetKeyAt()
360 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
364 JSTaggedValue result = array->GetKeyAt(thread, index); in GetKeyAt()
371 JSThread *thread = argv->GetThread(); in Remove() local
372 BUILTINS_API_TRACE(thread, PlainArray, Remove); in Remove()
375 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in Remove()
376 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Remove()
378 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
380 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
385 … key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Remove()
388 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, key.GetTaggedValue()); in Remove()
389 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Remove()
391 …The type of \"key\" must be small integer. Received value is: " + ConvertToString(thread, *result); in Remove()
392 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Remove()
393 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
396 JSTaggedValue value = array->Remove(thread, key.GetTaggedValue()); in Remove()
403 JSThread *thread = argv->GetThread(); in RemoveAt() local
404 BUILTINS_API_TRACE(thread, PlainArray, RemoveAt); in RemoveAt()
407 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in RemoveAt()
408 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in RemoveAt()
410 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveAt()
412 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
417 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveAt()
420 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in RemoveAt()
421 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveAt()
423 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in RemoveAt()
424 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveAt()
425 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
428 JSTaggedValue value = array->RemoveAt(thread, index.GetTaggedValue()); in RemoveAt()
435 JSThread *thread = argv->GetThread(); in RemoveRangeFrom() local
436 BUILTINS_API_TRACE(thread, PlainArray, RemoveRangeFrom); in RemoveRangeFrom()
439 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in RemoveRangeFrom()
440 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in RemoveRangeFrom()
442 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveRangeFrom()
444 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveRangeFrom()
450 …valueIndex = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(valueIndex->GetDo… in RemoveRangeFrom()
453 …valueSize = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(valueSize->GetDoub… in RemoveRangeFrom()
456 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, valueIndex.GetTaggedValue()); in RemoveRangeFrom()
457 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveRangeFrom()
459 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in RemoveRangeFrom()
460 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveRangeFrom()
461 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveRangeFrom()
464 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, valueSize.GetTaggedValue()); in RemoveRangeFrom()
465 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveRangeFrom()
467 …he type of \"size\" must be small integer. Received value is: " + ConvertToString(thread, *result); in RemoveRangeFrom()
468 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveRangeFrom()
469 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveRangeFrom()
474 JSTaggedValue value = array->RemoveRangeFrom(thread, index, size); in RemoveRangeFrom()
481 JSThread *thread = argv->GetThread(); in SetValueAt() local
482 BUILTINS_API_TRACE(thread, PlainArray, SetValueAt); in SetValueAt()
483 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetValueAt()
486 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in SetValueAt()
487 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in SetValueAt()
489 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetValueAt()
491 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
497 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in SetValueAt()
500 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in SetValueAt()
501 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetValueAt()
503 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in SetValueAt()
504 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetValueAt()
505 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
508 array->SetValueAt(thread, index.GetTaggedValue(), value.GetTaggedValue()); in SetValueAt()
515 JSThread *thread = argv->GetThread(); in GetValueAt() local
516 BUILTINS_API_TRACE(thread, PlainArray, GetValueAt); in GetValueAt()
517 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetValueAt()
520 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetValueAt()
521 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetValueAt()
523 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetValueAt()
525 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
530 … idx = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(idx->GetDouble())); in GetValueAt()
533 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, idx.GetTaggedValue()); in GetValueAt()
534 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetValueAt()
536 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetValueAt()
537 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetValueAt()
538 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
542 JSTaggedValue value = array->GetValueAt(thread, index); in GetValueAt()
549 JSThread *thread = argv->GetThread(); in GetSize() local
550 BUILTINS_API_TRACE(thread, PlainArray, GetSize); in GetSize()
553 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIPlainArray()) { in GetSize()
554 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetSize()
556 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetSize()
558 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetSize()