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 and docs updates #3073

Merged
merged 13 commits into from
Jan 15, 2025
Merged

Editorial and docs updates #3073

merged 13 commits into from
Jan 15, 2025

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Jan 14, 2025

  • Use "RFC 9557 string" where appropriate
  • Use "available time zone identifier" where appropriate
  • Update test262

For some reason, this identifier is listed both in TZDB's backward and
backzone files. The correct one to use is backzone. Firefox is currently
the only implementation that gets this correct. Correct the divergence in
the polyfill.
Two incorrect tests from the SpiderMonkey staging tests were fixed, but
one more was added.
The intention here was to set a default, not override any existing value.
Thanks to Anba for spotting this.

Closes: #3064
Instead of always using a fake English-only format in this example, rely
on Intl.DurationFormat if it is present. Still fall back to the fake
format if it is not.

See: #3067
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.37%. Comparing base (f5253c8) to head (a3b5337).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3073      +/-   ##
==========================================
+ Coverage   96.21%   96.37%   +0.15%     
==========================================
  Files          21       21              
  Lines        9867     9872       +5     
  Branches     1796     1800       +4     
==========================================
+ Hits         9494     9514      +20     
+ Misses        323      311      -12     
+ Partials       50       47       -3     

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

Copy link
Collaborator

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

Approve but please check Justin's comments

Mostly in docs, but also in error messages, comments, etc., and in some
cases in the prose parts of the spec text. In some cases phrased to keep
in mind that ISO 8601 probably has better name recognition for the time
being.

Closes: #3071
It does, in fact, include one, and that's where the HTML format comes
from.
In a few places, we used "time zone identifier" (any string consisting of
allowed code units) where "available time zone identifier" would be
correct. Use that instead.

See: #3055
Addresses GHSA-3xgq-45jj-v275
Although cross-spawn is a dependency of eslint and this probably doesn't
matter, this silences a warning.
We don't want to imply that Z is the only way to get an exact time.
@ptomato
Copy link
Collaborator Author

ptomato commented Jan 15, 2025

Comments addressed. I appreciate all the suggestions!

@ptomato ptomato merged commit c3adf35 into main Jan 15, 2025
10 checks passed
@ptomato ptomato deleted the editorial branch January 15, 2025 01:03
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.

3 participants