-
Notifications
You must be signed in to change notification settings - Fork 156
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
Consume iterables where possible #1489
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1489 +/- ##
===========================================
- Coverage 95.30% 60.65% -34.65%
===========================================
Files 19 18 -1
Lines 11089 4796 -6293
Branches 1733 1045 -688
===========================================
- Hits 10568 2909 -7659
- Misses 517 1411 +894
- Partials 4 476 +472
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
dc01560
to
bbffad0
Compare
bbffad0
to
e98860c
Compare
In ToTemporalDateTime and ToTemporalZonedDateTime, the polyfill did not match the spec text. The list of fields in the spec text includes the time field names. (This will be tested in a following commit.)
e98860c
to
db66dea
Compare
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.
Looks great to me. Pending addressing Jordan's & Kevin's suggestions, ship it. Only comments are for some #1398 additions.
db66dea
to
0f61f20
Compare
The fields() methods of the built-in Temporal calendars will only ever return arrays, but this allows custom calendars to return an iterable (such as a Set.) See: #1427
Temporal will only ever call the fields() method with an array, but other callers may want to supply a different iterable (such as a Set). See: #1427
This is a bug in both the polyfill and the spec text, that is exposed by the tests added in the following commit.
The getPossibleInstantsFor() methods of the built-in Temporal time zones will only ever return arrays, but this allows custom time zones to return an iterable (such as a Set.) See: #1427
0f61f20
to
df98a24
Compare
Closes: #1427