-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Normative: Reject non-integer Duration fields in Duration.with() #1735
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1735 +/- ##
==========================================
- Coverage 94.85% 91.08% -3.77%
==========================================
Files 19 17 -2
Lines 10882 10772 -110
Branches 1729 1606 -123
==========================================
- Hits 10322 9812 -510
- Misses 547 946 +399
- Partials 13 14 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
73eb281
to
463a9f0
Compare
(Draft because normative PR waiting for consensus) |
463a9f0
to
c85bedb
Compare
This change achieved consensus in TC39. Rebased and fixed some conflicts; @Ms2ger would you mind taking a final look? |
…onRecord The test should be floor(abs(v)) == abs(v). Use the existing abstract operation. Adds an extra line to each test which should cover this as well.
c85bedb
to
b0b41d9
Compare
Unintentionally forgot with() when rejecting non-integer Duration fields
in issue #938.
Adds tests for anywhere Duration property bags are accepted, fixes a test
that would fail under the new spec text, and brings the testing polyfill
code in alignment with the new spec text.
Closes: #1704