-
Notifications
You must be signed in to change notification settings - Fork 172
Polyfill: Fix off-by-1-or-2s error due to FP precision loss #3173
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
Conversation
Discovered by comparing the snapshot tests against other implementations. h/t Tim Chevalier for figuring out where the bug was. The spec is correct, no change needed. Update the snapshots accordingly. Regression from 7b924d4.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3173 +/- ##
==========================================
+ Coverage 96.91% 96.96% +0.05%
==========================================
Files 22 22
Lines 10209 10219 +10
Branches 1839 1841 +2
==========================================
+ Hits 9894 9909 +15
+ Misses 266 261 -5
Partials 49 49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bug observed in the proposal-temporal reference code, caused by improper implementation of AddTime (https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the advice in Step 2 was not followed correctly. See tc39/proposal-temporal#3173
|
Test262 tests in tc39/test262#4629 |
Bug observed in the proposal-temporal reference code, caused by improper implementation of AddTime (https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the advice in Step 2 was not followed correctly. See tc39/proposal-temporal#3173
justingrant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Bug observed in the proposal-temporal reference code, caused by improper implementation of AddTime (https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the advice in Step 2 was not followed correctly. See tc39/proposal-temporal#3173
Bug observed in the proposal-temporal reference code, caused by improper implementation of AddTime (https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the advice in Step 2 was not followed correctly. See tc39/proposal-temporal#3173
Discovered by comparing the snapshot tests against other implementations. h/t @catamorphism for figuring out where the bug was.
The spec is correct, no change needed.
Update the snapshots accordingly.
Regression from 7b924d4.