-
Notifications
You must be signed in to change notification settings - Fork 472
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
Conversation
742f71c
to
feb36c0
Compare
feb36c0
to
00b0dc0
Compare
There was a problem hiding this 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? 😵💫
test/built-ins/Temporal/Duration/prototype/add/nanoseconds-to-days-loop-indefinitely-2.js
Outdated
Show resolved
Hide resolved
test/built-ins/Temporal/PlainDate/prototype/since/order-of-operations.js
Show resolved
Hide resolved
There was a problem hiding this 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.
3f4e2c2
to
d26e3eb
Compare
Next part of #3897. These tests should provide coverage for tc39/proposal-temporal#2671. Best reviewed commit by commit.