Closed Bug 1855746 Opened 2 years ago Closed 2 years ago

Read date-time options only once when creating DateTimeFormat objects

Categories

(Core :: JavaScript: Internationalization API, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox120 --- wontfix
firefox121 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(3 files)

Implement the changes from https://github.com/tc39/ecma402/pull/709.

Split LegacyInitializeObject into two separate functions in preparation for the
next part.

Drive-by change:
Remove notes about constructors cached in "Utilities.js" which does no longer
apply to the current code.

Depends on D189537

Implements the changes from https://github.com/tc39/ecma402/pull/709.

The intl_DateTimeFormat self-hosted function is replaced with intl_CreateDateTimeFormat,
which implements the new CreateDateTimeFormat abstract operation from the spec.

intl_CreateDateTimeFormat calls into the existing InitializeDateTimeFormat function
to actually initialise the newly created date-time formatter.

Depends on D189538

Updates spec step comments and variable names to match more recent spec draft texts.

The step comments probably no longer match the most recent spec, but it's currently
difficult to keep them updated, because there are multiple open spec PRs to refactor
this part of the spec.

Depends on D189539

Duplicate of this bug: 1855832
Severity: -- → N/A
Priority: -- → P3
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3a208f8c06e1 Part 1: Split LegacyInitializeObject into separate functions for Number- and DateTime-Format. r=dminor https://hg.mozilla.org/integration/autoland/rev/c1042546a44b Part 2: Read date-time options only once when creating DateTimeFormat objects. r=dminor https://hg.mozilla.org/integration/autoland/rev/c3b811d29db0 Part 3: Update step numbers in CreateDateTimeFormat. r=dminor
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: