-
Notifications
You must be signed in to change notification settings - Fork 170
Replace BalanceISODate(Time) and rearrange time zone offset checks #3184
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
base: main
Are you sure you want to change the base?
Conversation
…ateTime' in polyfill
The check in the "timeZone === 'UTC'" case in GetPossibleEpochNanoseconds is necessary to make ZonedDateTime/p/since/roundingincrement-addition-out-of-range.js and ZonedDateTime/p/until/roundingincrement-addition-out-of-range.js pass. If it's changed to CheckISODaysRange(isoDateTime), that causes other test failures. Also changed and moved CheckISODaysRange(isoDateTime) test in InterpretISODateTimeOffset; this was to fix the following failures: FAIL: Duration/compare/relativeto-string-limits.js FAIL: Duration/p/round/relativeto-string-limits.js FAIL: Duration/p/total/relativeto-string-limits.js FAIL: ZonedDateTime/compare/argument-string-limits.js FAIL: ZonedDateTime/from/argument-string-limits.js FAIL: ZonedDateTime/p/equals/argument-string-limits.js FAIL: ZonedDateTime/p/since/argument-string-limits.js FAIL: ZonedDateTime/p/until/argument-string-limits.js
…bleEpochNanoseconds
…bleEpochNanoseconds'
…ore GetEpochNanosecondsFor
…ore GetEpochNanosecondsFor'
ff0e8db to
21fedcc
Compare
21fedcc to
b37b572
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3184 +/- ##
==========================================
+ Coverage 96.96% 96.99% +0.03%
==========================================
Files 22 22
Lines 10219 10196 -23
Branches 1841 1850 +9
==========================================
- Hits 9909 9890 -19
+ Misses 261 257 -4
Partials 49 49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Note: not every step passes tests on its own. The first step breaks these tests: which are fixed in a later step. |
This takes #3014 and adds a commit implementing each spec change in the polyfill, following each of the spec commits.
Some test262 failures were revealed in the process, and the spec is changed accordingly, in separate commits so that it's easy to track what's different from #3014.