summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-09 23:20:36 +0100
committerLinus Groh <mail@linusgroh.de>2022-03-10 23:20:39 +0100
commit97bd4cebaba25d3b5dc5ba1c94768e988b486038 (patch)
treed5047e3f0f461013861a6bfa309df698a22aeb88 /Userland/Libraries/LibJS/Runtime/Temporal/Duration.h
parentbdb13a74b070235096a6ea41306dd23fc9933c05 (diff)
downloadserenity-97bd4cebaba25d3b5dc5ba1c94768e988b486038.zip
LibJS: Refactor return value of RoundDuration
This is an editorial change in the Temporal spec. See: - https://github.com/tc39/proposal-temporal/commit/3641adf - https://github.com/tc39/proposal-temporal/commit/8ea590c
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Duration.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Duration.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h
index 94a2cbed23..fefcbaeb93 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.h
@@ -104,16 +104,7 @@ struct MoveRelativeDateResult {
// Used by RoundDuration to temporarily hold values
struct RoundedDuration {
- double years;
- double months;
- double weeks;
- double days;
- double hours;
- double minutes;
- double seconds;
- double milliseconds;
- double microseconds;
- double nanoseconds;
+ DurationRecord duration_record;
double remainder;
};