[Temporal] Use the BigInt version of BalanceDuration
in AdjustRoundedDurationDays Bug: v8:11544 Change-Id: I5067aba802b5051312afdd38b0f9c71bfdc14c2a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3825617 Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Frank Tang <ftang@chromium.org> Cr-Commit-Position: refs/heads/main@{#82404}
This commit is contained in:
parent
ca43e2d0f8
commit
c54ba26acc
@ -6577,10 +6577,7 @@ Maybe<DurationRecord> AdjustRoundedDurationDays(Isolate* isolate,
|
||||
TimeDurationRecord adjusted_time_duration;
|
||||
MAYBE_ASSIGN_RETURN_ON_EXCEPTION_VALUE(
|
||||
isolate, adjusted_time_duration,
|
||||
BalanceDuration(
|
||||
isolate, Unit::kHour,
|
||||
{0, 0, 0, 0, 0, 0, static_cast<double>(time_remainder_ns->AsInt64())},
|
||||
method_name),
|
||||
BalanceDuration(isolate, Unit::kHour, time_remainder_ns, method_name),
|
||||
Nothing<DurationRecord>());
|
||||
// 13. Return ! CreateDurationRecord(adjustedDateDuration.[[Years]],
|
||||
// adjustedDateDuration.[[Months]], adjustedDateDuration.[[Weeks]],
|
||||
|
Loading…
Reference in New Issue
Block a user