mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS+LibUnicode: Support Intl.MathematicalValue in Intl.PluralRules
This is a normative change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/7344f42 The main difference here is that Intl.PluralRules now supports BigInt.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 17:20:49 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/72a6f59df58 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7789
@@ -658,7 +658,7 @@ public:
|
||||
VERIFY(icu_success(status));
|
||||
}
|
||||
|
||||
virtual PluralCategory select_plural(double value) const override
|
||||
virtual PluralCategory select_plural(Value const& value) const override
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
VERIFY(m_plural_rules);
|
||||
@@ -674,7 +674,7 @@ public:
|
||||
return plural_category_from_string(icu_string_to_utf16_view(result));
|
||||
}
|
||||
|
||||
virtual PluralCategory select_plural_range(double start, double end) const override
|
||||
virtual PluralCategory select_plural_range(Value const& start, Value const& end) const override
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
VERIFY(m_plural_rules);
|
||||
|
||||
Reference in New Issue
Block a user