mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-24 02:30:03 +00:00
Fix numberingSystem invaild to undefined
Signed-off-by: liujia178 <liujia178@huawei.com>
This commit is contained in:
parent
78f90b26a3
commit
99f96170f1
@ -488,6 +488,13 @@ void JSNumberFormat::InitializeNumberFormat(JSThread *thread, const JSHandle<JSN
|
||||
}
|
||||
}
|
||||
|
||||
if (!numberingSystemStr.empty()) {
|
||||
// If numberingSystem is invalid, Let numberingSystem be undefined.
|
||||
if (!JSLocale::IsWellNumberingSystem(numberingSystemStr)) {
|
||||
numberFormat->SetNumberingSystem(thread, undefinedValue);
|
||||
}
|
||||
}
|
||||
|
||||
// 10. Let localeData be %NumberFormat%.[[LocaleData]].
|
||||
JSHandle<TaggedArray> availableLocales;
|
||||
if (requestedLocales->GetLength() == 0) {
|
||||
|
@ -1652,7 +1652,6 @@
|
||||
"intl/number-format/resolved-options-digits-order.js",
|
||||
"intl/number-format/rounding-increment-value-v3.js",
|
||||
"intl/number-format/use-grouping-v3.js",
|
||||
"intl/number-format/check-numbering-system.js",
|
||||
"intl/number-format/format-currency.js",
|
||||
"intl/number-format/sign-display-v3.js",
|
||||
"intl/number-format/resolved-options-order.js",
|
||||
|
Loading…
Reference in New Issue
Block a user