Commit c54ba26a authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

[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/+/3825617Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82404}
parent ca43e2d0
......@@ -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]],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment