-
Notifications
You must be signed in to change notification settings - Fork 153
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
Remove conditional lookups #2726
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2726 +/- ##
==========================================
+ Coverage 96.38% 96.39% +0.01%
==========================================
Files 21 21
Lines 12615 12497 -118
Branches 2356 2262 -94
==========================================
- Hits 12159 12047 -112
+ Misses 401 395 -6
Partials 55 55 ☔ View full report in Codecov by Sentry. |
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.
👍
@gibson042 Would you be able to check if you agree with tc39/test262#3959 as well, so we can get this merged promptly? |
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.
@gibson042 Would you be able to check if you agree with tc39/test262#3959 as well, so we can get this merged promptly?
Done.
In several Temporal.Duration operations we create a Calendar Methods Record from zonedRelativeTo.[[Calendar]] if relativeTo is a ZonedDateTime, otherwise from plainRelativeTo.[[Calendar]] if relativeTo is a PlainDate, and otherwise we don't use a Calendar Methods Record. This abstracts that process into a new AO.
966a673
to
a19b982
Compare
Thanks for the reviews. |
This addresses Richard's comments on #2519.
Tests are in tc39/test262#3959
Closes: #2724