mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
Clear security alerts
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB5NXV Signed-off-by: hlm2001 <huanglimin10@huawei.com>
This commit is contained in:
parent
924f7eaa9b
commit
9733a7ca1b
@ -60,6 +60,8 @@ DtoaHelper::DiyFp DtoaHelper::GetCachedPowerByIndex(size_t index)
|
|||||||
-24, 3, 30, 56, 83, 109, 136, 162, 189, 216, 242, 269, 295, 322, 348,
|
-24, 3, 30, 56, 83, 109, 136, 162, 189, 216, 242, 269, 295, 322, 348,
|
||||||
375, 402, 428, 455, 481, 508, 534, 561, 588, 614, 641, 667, 694, 720, 747,
|
375, 402, 428, 455, 481, 508, 534, 561, 588, 614, 641, 667, 694, 720, 747,
|
||||||
774, 800, 827, 853, 880, 907, 933, 960, 986, 1013, 1039, 1066};
|
774, 800, 827, 853, 880, 907, 933, 960, 986, 1013, 1039, 1066};
|
||||||
|
ASSERT_PRINT(index < sizeof(kCachedPowers_F) / sizeof(kCachedPowers_F[0]) &&
|
||||||
|
index < sizeof(kCachedPowers_E) / sizeof(kCachedPowers_E[0]), "invalid index: " << index);
|
||||||
return DtoaHelper::DiyFp(kCachedPowers_F[index], kCachedPowers_E[index]);
|
return DtoaHelper::DiyFp(kCachedPowers_F[index], kCachedPowers_E[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ JSTaggedValue JSAsyncGeneratorObject::AsyncGeneratorResolve(JSThread *thread,
|
|||||||
RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
|
RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
|
||||||
info->SetCallArg(its.GetTaggedValue());
|
info->SetCallArg(its.GetTaggedValue());
|
||||||
[[maybe_unused]] JSTaggedValue res = JSFunction::Call(info);
|
[[maybe_unused]] JSTaggedValue res = JSFunction::Call(info);
|
||||||
if ((thread)->HasPendingException()) {
|
if (thread->HasPendingException()) {
|
||||||
[[maybe_unused]] JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType();
|
[[maybe_unused]] JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType();
|
||||||
ASSERT(errorType == JSType::JS_RANGE_ERROR);
|
ASSERT(errorType == JSType::JS_RANGE_ERROR);
|
||||||
thread->ClearException();
|
thread->ClearException();
|
||||||
|
@ -350,7 +350,8 @@ JSHandle<EcmaString> JSDisplayNames::CanonicalCodeForDisplayNames(JSThread *thre
|
|||||||
width = UDATPG_NARROW;
|
width = UDATPG_NARROW;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
LOG_ECMA(FATAL) << "this branch is unreachable";
|
||||||
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
std::string datetimeCode = intl::LocaleHelper::ConvertToStdString(code);
|
std::string datetimeCode = intl::LocaleHelper::ConvertToStdString(code);
|
||||||
UDateTimePatternField field = StringToUDateTimePatternField(datetimeCode.c_str());
|
UDateTimePatternField field = StringToUDateTimePatternField(datetimeCode.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user