Skip to content

Polyfill: RangeError thrown when parsing calendar from time-only string #3090

Open
@anba

Description

@anba

Test case:

new Temporal.PlainDate(2025, 1, 1, "gregory").withCalendar("01").calendarId

Expected: Return the string "iso8601".
Actual: Throws a RangeError.

ParseTemporalCalendarString, step 2.b defaults to using "iso8601" when no calendar is present in the input string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions