invalid Date object throws RangeError: Invalid time value
ttoohey opened this issue · 1 comments
ttoohey commented
the following example throws an error
reactElementToJSXString(<div foo={new Date(NaN)} />)
RangeError: Invalid time value
at Date.toISOString (<anonymous>)
armandabric commented
Thanks for your PR !