Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fixes #3632, toISOString returns null for invalid date #3710

Closed
wants to merge 1 commit into from

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
Member

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.

None yet

4 participants