Skip to content

invalid Date object throws RangeError: Invalid time value #605

Closed
@ttoohey

Description

@ttoohey

the following example throws an error

reactElementToJSXString(<div foo={new Date(NaN)} />)
 RangeError: Invalid time value
 at Date.toISOString (<anonymous>)

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