Skip to content

Temporal: Check observability of ordering of GetOptionsObject accesses#4989

Open
jessealama wants to merge 10 commits intotc39:mainfrom
jessealama:get-options-object-ordering
Open

Temporal: Check observability of ordering of GetOptionsObject accesses#4989
jessealama wants to merge 10 commits intotc39:mainfrom
jessealama:get-options-object-ordering

Conversation

@jessealama
Copy link
Copy Markdown
Contributor

This PR follows up #4987 with tests for observability of GetOptionsObject accesses. There, we tested just PlainYearMonth's .add and .subtract. Here, we follow the same pattern, exercising:

  • PlainDate: add, subtract, until, since, with, from
  • PlainDateTime: add, subtract, until, since, with, from
  • PlainYearMonth: until, since, with, from
  • PlainMonthDay: with, from
  • PlainTime: until, since, with, from
  • ZonedDateTime: add, subtract, until, since, with, from
  • Instant: until, since
  • Duration: compare

@jessealama jessealama requested a review from a team as a code owner March 11, 2026 11:10
@jessealama jessealama requested a review from ptomato March 11, 2026 11:18
Copy link
Copy Markdown
Contributor

@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.

Looks good; note I didn't check for exhaustiveness, but I assume you did 😄

We should reduce the duplication before merging, though.

@jessealama jessealama force-pushed the get-options-object-ordering branch from 19fc1cc to 94b86b1 Compare March 23, 2026 10:01
@jessealama jessealama requested a review from ptomato March 23, 2026 10: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.

2 participants