We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
new Date()
var date = new Date(new Date()); // expected to be a valid `Date` Object, got `new Date(NaN)` in IE8 instead
IE8 (with es5-shim):
es5-shim
IE8 (without es5-shim):
Chrome:
The text was updated successfully, but these errors were encountered:
Does this happen with just new Date() as well?
Sorry, something went wrong.
@ljharb No, just new Date() is fine.
hm, interesting, thanks! I'll fix this ASAP.
Curious tho, how did you discover this? Passing a date object into new Date is super odd.
new Date
Haha, we were to copy a Date object by passing it into new Date :D
Date
not new Date(+date)? :-)
new Date(+date)
d90b7b6
No branches or pull requests
IE8 (with
es5-shim
):IE8 (without
es5-shim
):Chrome:
The text was updated successfully, but these errors were encountered: