Skip to content
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

Editorial: Implement next batch of editorial suggestions from Anba #3032

Merged
merged 7 commits into from
Nov 11, 2024

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Oct 31, 2024

Closes #3016, #3018, #3019, #3020, #3021

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.71%. Comparing base (0288bc9) to head (a563813).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3032   +/-   ##
=======================================
  Coverage   95.70%   95.71%           
=======================================
  Files          21       21           
  Lines        9695     9704    +9     
  Branches     1742     1742           
=======================================
+ Hits         9279     9288    +9     
  Misses        364      364           
  Partials       52       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ptomato ptomato force-pushed the editorial branch 2 times, most recently from 74e8fdb to 737ecad Compare November 1, 2024 20:50
polyfill/lib/ecmascript.mjs Outdated Show resolved Hide resolved
See #3015, which posits that these assertions are hit in existing test262
tests.
These were holdovers from the old terminology.

Closes: #3016
…step

If the calendar ID is valid (ensured by the previous step) and the ISO
date-time is within range (ensured by being in dateTime's internal slot)
and the default constructor is used, then this can't throw.

Closes: #3018
This AO takes a time duration, not an Internal Duration record.

Closes: #3019
DivideTimeDuration is only called with certain divisors from the table of
units, so there's no need for a general-purpose AO. (In the reference
code, TimeDuration.prototype.fdiv() is still needed in a few places for
implementation reasons having to do with floating-point numbers.)

Closes: #3020
These are two lingering references to when time durations were a Record
with a [[TotalNanoseconds]] field.

Closes: #3021
@ptomato ptomato merged commit 6b3ca82 into main Nov 11, 2024
10 checks passed
@ptomato ptomato deleted the editorial branch November 11, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NudgeToDayOrTime: "roundedNorm" and "diffNorm" should be renamed to "roundedTime" and "diffTime"
2 participants