Closed Bug 1763607 Opened 4 years ago Closed 4 years ago

Update NumberFormat v3 to match latest spec draft

Categories

(Core :: JavaScript: Internationalization API, task, P1)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

No description provided.

Changes:

  1. "roundingIncrement" can only be used when [[RoundingType]] is fractionDigits.
  • [[RoundingType]] is fractionDigits when "roundingPriority" is "auto" and
    no significand digits are used.
  • If these requirements aren't met, a TypeError (JSMSG_INVALID_NUMBER_OPTION)
    is thrown.
  1. Minimum and maximum fraction digits must be equal when "roundingIncrement"
    is used.
  • If this requirement isn't met, a RangeError (JSMSG_UNEQUAL_FRACTION_DIGITS)
    is thrown.
  1. Neither start nor end parameter in Intl_PluralRules_selectRange must
    be undefined. Otherwise a TypeError (JSMSG_UNDEFINED_NUMBER) is thrown.

  2. Neither start nor end parameter in Intl_PluralRules_selectRange must
    be NaN. Otherwise a RangeError (JSMSG_NAN_NUMBER_RANGE) is thrown.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P1
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/15a30a3f4b61 Update NumberFormat v3 to match latest spec draft. r=platform-i18n-reviewers,gregtatum
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: