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

Temporal: Audit of user code calls, part 3 #3923

Merged
merged 9 commits into from
Oct 4, 2023

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Sep 14, 2023

Next part of #3897. These tests should provide coverage for tc39/proposal-temporal#2671. Best reviewed commit by commit.

Copy link
Contributor

@cjtenny cjtenny left a comment

Choose a reason for hiding this comment

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

Looks great to me, with one issue and one question. I think the resolution to the former is simple and wouldn't need re-review - either re-adding the tests or not.

I did find some paths that weren't covered, but that's no reason to block this set of tests and make a 6000 line pair of PRs any longer - I'll add that further coverage in a separate PR since I wrote some of them already while reasoning if the paths were viable.

6000 lines between temporal and tests for part 3, how do you do it? 😵‍💫

Copy link
Contributor

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

I'll defer to Cam here

… ZDT

This allows removing several tests, as calendar.dateAdd() is no longer
called in several places, and it's no longer possible to create a
situation where BigInt arithmetic is observable in NanosecondsToDays.
This removes several loopholes where it was possible to return particular
values from user calls that would cause infinite loops, or calculate
zero-length days.
…ditions

Repeat all the existing tests for no-op duration rounding operations, but
with negative durations.
@ptomato ptomato merged commit dceb204 into tc39:main Oct 4, 2023
8 of 9 checks passed
@ptomato ptomato deleted the user-code-calls-part-3 branch October 4, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants