diff options
author | Linus Groh <mail@linusgroh.de> | 2022-03-31 00:48:57 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-31 17:09:10 +0100 |
commit | cfb04765fa83683944f96b535c336e5d607e9b60 (patch) | |
tree | 45d30d2a11068b14dfda39eb0cfa6e108a1c5a1d /Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp | |
parent | b020b8eea25471b371af2466ace2b80b8cd691ee (diff) | |
download | serenity-cfb04765fa83683944f96b535c336e5d607e9b60.zip |
LibJS: Correct PlainYearMonth arithmetic for non-ISO calendars
This is a normative change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/61e8dd0
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp index 159d4110ea..e290a2157a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp @@ -111,7 +111,7 @@ ThrowCompletionOr<ISODateTime> interpret_temporal_date_time_fields(GlobalObject& auto overflow = TRY(to_temporal_overflow(global_object, options)); // 3. Let temporalDate be ? DateFromFields(calendar, fields, options). - auto* temporal_date = TRY(date_from_fields(global_object, calendar, fields, options)); + auto* temporal_date = TRY(date_from_fields(global_object, calendar, fields, &options)); // 4. Let timeResult be ? RegulateTime(timeResult.[[Hour]], timeResult.[[Minute]], timeResult.[[Second]], timeResult.[[Millisecond]], timeResult.[[Microsecond]], timeResult.[[Nanosecond]], overflow). auto time_result = TRY(regulate_time(global_object, unregulated_time_result.hour, unregulated_time_result.minute, unregulated_time_result.second, unregulated_time_result.millisecond, unregulated_time_result.microsecond, unregulated_time_result.nanosecond, overflow)); |