Skip to content

Normative: Use internal slot in UnbalanceDurationRelative. #1616

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

Merged
merged 3 commits into from
Aug 31, 2021

Conversation

Ms2ger
Copy link
Collaborator

@Ms2ger Ms2ger commented Jul 6, 2021

No description provided.

@Ms2ger Ms2ger added the needs plenary input Needs to be presented to the committee and feedback incorporated label Jul 6, 2021
@codecov
Copy link

codecov bot commented Jul 6, 2021

Codecov Report

Merging #1616 (ca050fd) into main (8085873) will decrease coverage by 0.28%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1616      +/-   ##
==========================================
- Coverage   95.10%   94.82%   -0.29%     
==========================================
  Files          19       19              
  Lines       10764    10761       -3     
  Branches     1725     1725              
==========================================
- Hits        10237    10204      -33     
- Misses        514      544      +30     
  Partials       13       13              
Flag Coverage Δ
test262 73.38% <100.00%> (+0.11%) ⬆️
tests 90.01% <100.00%> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 94.78% <100.00%> (-0.47%) ⬇️
polyfill/lib/calendar.mjs 93.85% <0.00%> (-0.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a641a07...ca050fd. Read the comment docs.

Copy link
Collaborator

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this looks like my mistake, and I agree it's a normative change

Ms2ger and others added 3 commits August 18, 2021 14:40
Since the step 4 stement in CalendarDateUntil is
4. Perform ? RequireInternalSlot(duration, [[InitializedTemporalDuration]]).
 _untilResult_ is guarantee to be a TemporalDuration object and there are no need to call Get - which could return any kind of values, but
only need to acecss [[Months]] which is guarantee for certain type and range.
@ptomato ptomato force-pushed the various-normative branch from 3d92ef9 to ca050fd Compare August 18, 2021 22:27
@ptomato
Copy link
Collaborator

ptomato commented Aug 18, 2021

I've added Frank's additional fixes from #1673 here, to consolidate the two pull requests, and added test coverage for each entry point where this happens.

@FrankYFTang
Copy link
Contributor

thanks

@ptomato ptomato marked this pull request as ready for review August 31, 2021 18:50
@ptomato
Copy link
Collaborator

ptomato commented Aug 31, 2021

This change achieved consensus in TC39.

@ptomato ptomato merged commit 777cd13 into main Aug 31, 2021
@ptomato ptomato deleted the various-normative branch August 31, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs plenary input Needs to be presented to the committee and feedback incorporated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do we need to check after the Get(untilResult, "months") in UnbalanceDurationRelative
3 participants