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:
Timothy Flynn
2025-12-05 10:08:02 -05:00
committed by Tim Flynn
parent a109adebeb
commit 72a6f59df5
Notes: github-actions[bot] 2026-02-06 17:20:49 +00:00
6 changed files with 131 additions and 107 deletions

View File

@@ -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);