mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
handle the problem of compiling and reporting errors
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
This commit is contained in:
parent
cf3ee3ab96
commit
59e9a47d29
@ -312,7 +312,7 @@ JSTaggedValue JSAPIArrayList::ForEach(JSThread *thread, const JSHandle<JSTaggedV
|
||||
JSTaggedValue funcResult =
|
||||
JSFunction::Call(thread, callbackFn, thisArg, 3, arguments->GetArgv()); // 3: three args
|
||||
RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, funcResult);
|
||||
if (length != arrayList->GetSize()) {
|
||||
if (static_cast<int>(length) != arrayList->GetSize()) {
|
||||
length = arrayList->GetSize();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user