Closed Bug 2009792 Opened 1 day ago Closed 10 hours ago

Don't constrain month if monthCode is also present

Categories

(Core :: JavaScript: Standard Library, defect, P1)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Temporal.PlainDate.from({ calendar: 'gregory', monthCode: 'M12', month: 13, year: 2019, day: 1 }, { overflow: 'constrain' }) should throw a RangeError. See https://github.com/tc39/proposal-intl-era-monthcode/pull/107#issuecomment-3720651274.

No change in behaviour. (Except for RangeError error messages.)

This change is needed for part 2.

Severity: -- → S3
Priority: -- → P1
Pushed by andre.bargull@gmail.com: https://github.com/mozilla-firefox/firefox/commit/4552297da3df https://hg.mozilla.org/integration/autoland/rev/d28786e6c9f8 Part 1: Switch month and monthCode cases in CalendarFieldMonth. r=spidermonkey-reviewers,dminor https://github.com/mozilla-firefox/firefox/commit/1ff34544012d https://hg.mozilla.org/integration/autoland/rev/c3aa0eb9cc02 Part 2: Don't constrain month if monthCode is also present. r=spidermonkey-reviewers,dminor https://github.com/mozilla-firefox/firefox/commit/06f08d63a74a https://hg.mozilla.org/integration/autoland/rev/dfb19519c9fa Part 3: Prefer Int32ToCString for int32 values. r=spidermonkey-reviewers,dminor
Status: ASSIGNED → RESOLVED
Closed: 10 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: