Skip to content

Conversation

maggiepint
Copy link
Member

This pull request solves #3632 and replaces #3644 with a less invasive solution.

Basically, .toISOString() now returns null if called on an invalid date.

There was also some mad cyclomatic complexity in there that I cleaned up.

@icambron
Copy link
Contributor

icambron commented Jan 9, 2017

+1

@maggiepint
Copy link
Member Author

Since @icambron seems to like it, and I like it cuz I wrote it :-) marking with a :shipit:

@mattjohnsonpint mattjohnsonpint added this to the 2.18.0 milestone Jan 17, 2017
@ichernev
Copy link
Contributor

ichernev commented Mar 2, 2017

Merged in e4364f5

@ichernev ichernev changed the title toISOString returns null for invalid date [bugfix] Fixes #3632, toISOString returns null for invalid date Mar 2, 2017
@ichernev ichernev closed this Mar 2, 2017
ichernev added a commit that referenced this pull request Mar 2, 2017
[bugfix] Fixes #3632, toISOString returns null for invalid date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants