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 improvements #2689

Merged
merged 6 commits into from
Sep 26, 2023
Merged

Editorial improvements #2689

merged 6 commits into from
Sep 26, 2023

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Sep 26, 2023

Many thanks to @anba for catching these.

Closes: #2683
Closes: #2684
Closes: #2686
Closes: #2687

Using Set here would traverse the prototype chain to find an existing
property descriptor, but _fields_ doesn't have a prototype chain because
it's already asserted to have a null prototype. Therefore using
CreateDataPropertyOrThrow should be exactly equivalent, but simpler.

Thanks to Anba for spotting this.

Closes: #2683
Thanks to Anba for spotting this.

Closes: #2684
Brings all of the structured headers for these AOs up to date with the
latest best practices, adding structured headers in the cases where the
headers were not yet structured.
Spotted by Anba. _options_ is already an Object or undefined in all of
these operations, and GetOptionsObject cannot throw on those inputs.

Closes: #2686
...if the precalculated offset comes from GetOffsetNanosecondsFor and is
guaranteed to be less than a 24-hour day, that is. Thanks to Anba for
spotting this.

Adjust call sites to assert there is no abrupt completion, and add an
assertion to GetPlainDateTimeFor to ensure it is only called with correct
offsets.

Closes: #2687
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (69a2c5b) 96.22% compared to head (8200cf8) 96.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2689   +/-   ##
=======================================
  Coverage   96.22%   96.22%           
=======================================
  Files          20       20           
  Lines       11986    11986           
  Branches     2227     2227           
=======================================
  Hits        11534    11534           
  Misses        389      389           
  Partials       63       63           

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

Copy link
Collaborator

@justingrant justingrant left a comment

Choose a reason for hiding this comment

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

👍

@Ms2ger Ms2ger merged commit 2423328 into main Sep 26, 2023
9 checks passed
@Ms2ger Ms2ger deleted the editorial branch September 26, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants