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

fix: Invalid Date object will throw a TypeError (#58) #59

Conversation

dotnetCarpenter
Copy link
Contributor

This PR will make sure that loupe will return "Invalid Date" if a Date object is invalid. It does not deal with how the Date object became invalid as that depends on JS engine.

See #58 (comment) for a comparison between V8 and Firefox's SpiderMoney.

@dotnetCarpenter
Copy link
Contributor Author

@keithamus Any reason to why the CI stuff is not running?

@keithamus
Copy link
Member

I needed to approve it for running. It's running now

@dotnetCarpenter
Copy link
Contributor Author

I also ran the Karma test suite against IE 11 on Windows 10 successfully.

@dotnetCarpenter dotnetCarpenter force-pushed the fix-invalid-date-object-will-throw-a-typeerror branch from 309fa36 to 6f0c55f Compare November 5, 2022 09:53
@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2022

Codecov Report

Base: 75.36% // Head: 75.43% // Increases project coverage by +0.07% 🎉

Coverage data is based on head (6f0c55f) compared to base (b4ee644).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   75.36%   75.43%   +0.07%     
==========================================
  Files          19       19              
  Lines         625      631       +6     
==========================================
+ Hits          471      476       +5     
- Misses        154      155       +1     
Impacted Files Coverage Δ
lib/date.js 100.00% <100.00%> (ø)
lib/typedarray.js 94.28% <0.00%> (-2.86%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@keithamus keithamus enabled auto-merge (squash) November 5, 2022 18:49
@keithamus keithamus merged commit 3747fa8 into chaijs:master Nov 5, 2022
@github-actions
Copy link

github-actions bot commented Nov 5, 2022

🎉 This PR is included in version 2.3.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants