Closed Bug 1839682 Opened 2 years ago Closed 6 months ago

Replace the DefaultTimeZone and CanonicalizeTimeZoneName self-hosted functions with their Temporal counterparts

Categories

(Core :: JavaScript: Standard Library, task, P3)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

temporal::TimeZone adds C++ implementations of the DefaultTimeZone and CanonicalizeTimeZoneName self-hosted functions. When the Temporal code is enabled by default, we can replace the self-hosted functions with the newer C++ functions.

Severity: -- → S3
Priority: -- → P3
Depends on: 1912757

This avoids some duplicated code. The next part will perform further clean-ups.

In addition to that, also provide a way to validate and canonicalise a time zone
name without first constructing a JSString.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED

Use the Temporal-based functions to avoid duplicated code.

Pushed by andre.bargull@gmail.com: https://github.com/mozilla-firefox/firefox/commit/edc8545f86a4 https://hg.mozilla.org/integration/autoland/rev/397a961e5bd3 Part 1: Move call to TimeZone::GetCanonicalTimeZoneID into SharedIntlData. r=spidermonkey-reviewers,dminor https://github.com/mozilla-firefox/firefox/commit/6c886aec818b https://hg.mozilla.org/integration/autoland/rev/7c46bc8f8fa2 Part 2: Use Temporal time zone functions for Intl. r=spidermonkey-reviewers,dminor

Backed out for causing SM bustages failures at DateTime.h
- Backout link

- Push with failures

- Failure log

  • Failure line:
    /builds/worker/checkouts/gecko/js/src/vm/DateTime.h:73:27: error: no member named 'intl' in namespace 'mozilla'
Flags: needinfo?(andrebargull)
Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com: https://github.com/mozilla-firefox/firefox/commit/95ef4b8ee7a7 https://hg.mozilla.org/integration/autoland/rev/b882fb0a8dcf Part 1: Move call to TimeZone::GetCanonicalTimeZoneID into SharedIntlData. r=spidermonkey-reviewers,dminor https://github.com/mozilla-firefox/firefox/commit/9da12aeecab9 https://hg.mozilla.org/integration/autoland/rev/f321bcc90a9d Part 2: Use Temporal time zone functions for Intl. r=spidermonkey-reviewers,dminor
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: