Closed Bug 2005091 Opened 1 month ago Closed 1 month ago

Internal error while computing Intl data when formatting date in Chinese calendar

Categories

(Core :: JavaScript: Internationalization API, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1999917

People

(Reporter: tjc, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0

Steps to reproduce:

js> new Intl.DateTimeFormat('en', { calendar: 'chinese', timeZone: 'UTC' }).formatToParts(2146851043199999 + 1)

Actual results:

typein:4:73 Error: internal error while computing Intl data
Stack:
  @typein:4:73

Expected results:

This should not throw, according to the spec.
The error seems to be in ICU4C (the fallback calendar is used because the date is out of range for what ICU4X supports). I filed https://unicode-org.atlassian.net/browse/ICU-23286 .

Thanks for the report! This is the same issue as bug 1999917, only that formatToParts throws whereas format returns an invalid formatted string.

Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1999917
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.