Skip to content

Temporal: Missing coverage for "reject" overflow handling in NonISODateAdd #4905

@anba

Description

@anba

This case seems uncovered, because it's not correctly implemented in SpiderMonkey, but I don't see any related failures when running all test262 Temporal tests:

// Actual: No RangeError in SpiderMonkey
// Expected: Throws a RangeError
Temporal.PlainDate.from({calendar: "hebrew", year: 5000, month: 6, day: 1}).add("P1Y1M", {overflow: "reject"})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions