Skip to content

Normative: Make Intl.PluralRules ResolvePlural and associated AOs take Intl mathematical values rather than Numbers#1026

Merged
ben-allen merged 1 commit intotc39:mainfrom
ben-allen:pluralrules-bigint-2
Dec 5, 2025
Merged

Normative: Make Intl.PluralRules ResolvePlural and associated AOs take Intl mathematical values rather than Numbers#1026
ben-allen merged 1 commit intotc39:mainfrom
ben-allen:pluralrules-bigint-2

Conversation

@ben-allen
Copy link
Copy Markdown
Contributor

@ben-allen ben-allen commented Sep 4, 2025

Normative: Updates the following Intl.PluralRules AOs to take Intl mathematical values rather than Numbers:

  • ResolvePlural
  • ResolvePluralRange

This allows Intl.PluralRules.select and Intl.PluralRules.selectRange to take BigInts as arguments.

fix #910

mathematical values rather than Numbers:

* `ResolvePlural`
* `ResolvePluralRange`

This brings `Intl.PluralRules`'s behaviour into alignment with
`Intl.NumberFormat`'s. Making this change has the following benefits:

* Allows `Intl.PluralRules` to handle BigInts as well as numbers
* Use of `ToIntlMathematicalValue` AO allows exact decimal values to be
  represented
@ben-allen ben-allen requested a review from gibson042 September 4, 2025 23:39
@sffc sffc moved this to Priority Issues in ECMA-402 Meeting Topics Sep 9, 2025
@ben-allen ben-allen added has consensus Has consensus from TC39-TG2 normative labels Sep 11, 2025
@sffc sffc moved this from Priority Issues to Previously Discussed in ECMA-402 Meeting Topics Oct 8, 2025
@ben-allen
Copy link
Copy Markdown
Contributor Author

TG1 consensus achieved in September 2025 meeting

@ben-allen ben-allen merged commit 7344f42 into tc39:main Dec 5, 2025
2 checks passed
@trflynn89
Copy link
Copy Markdown
Contributor

anba added a commit to anba/test262 that referenced this pull request Feb 5, 2026
anba added a commit to anba/test262 that referenced this pull request Feb 5, 2026
anba added a commit to anba/test262 that referenced this pull request Feb 5, 2026
When a rounding mode is set, there's an observable difference in
implementations when <tc39/ecma402#1026> is not
supported.
ptomato pushed a commit to anba/test262 that referenced this pull request Feb 5, 2026
ptomato pushed a commit to tc39/test262 that referenced this pull request Feb 5, 2026
lando-worker bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Feb 11, 2026
…s. r=spidermonkey-reviewers,dminor

Implements the changes from <tc39/ecma402#1026>.

Test262 tests: <tc39/test262#4912>.

Differential Revision: https://phabricator.services.mozilla.com/D281991
lando-worker bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Feb 18, 2026
…s. r=spidermonkey-reviewers,dminor

Implements the changes from <tc39/ecma402#1026>.

Test262 tests: <tc39/test262#4912>.

Differential Revision: https://phabricator.services.mozilla.com/D281991
eemeli added a commit to tc39/proposal-intl-keep-trailing-zeros that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has consensus Has consensus from TC39-TG2 needs tests normative

Projects

Status: Previously Discussed

Development

Successfully merging this pull request may close these issues.

Intl.PluralRules should support BigInt

5 participants