diff options
author | Linus Groh <mail@linusgroh.de> | 2021-08-17 20:38:29 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-17 21:59:35 +0100 |
commit | 0cdad283c0088a31b7844fc2cef5a57187d2f460 (patch) | |
tree | 3b257eedd4e27c88ae85ed96dacb15b209c02e64 /Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp | |
parent | 74ee1c9a8c77330e988155399535ac92f2d354f4 (diff) | |
download | serenity-0cdad283c0088a31b7844fc2cef5a57187d2f460.zip |
LibJS: Reflect Record wording editorial change in the Temporal spec
See: https://github.com/tc39/proposal-temporal/commit/c8f14d0
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp index 8fee077dbe..c7d0d4763a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp @@ -813,7 +813,7 @@ Optional<ISOYearMonth> iso_year_month_from_fields(GlobalObject& global_object, O if (vm.exception()) return {}; - // 8. Return the new Record { [[Year]]: result.[[Year]], [[Month]]: result.[[Month]], [[ReferenceISODay]]: 1 }. + // 8. Return the Record { [[Year]]: result.[[Year]], [[Month]]: result.[[Month]], [[ReferenceISODay]]: 1 }. return ISOYearMonth { .year = result->year, .month = result->month, .reference_iso_day = 1 }; } @@ -892,7 +892,7 @@ Optional<ISOMonthDay> iso_month_day_from_fields(GlobalObject& global_object, Obj return {}; } - // 14. Return the new Record { [[Month]]: result.[[Month]], [[Day]]: result.[[Day]], [[ReferenceISOYear]]: referenceISOYear }. + // 14. Return the Record { [[Month]]: result.[[Month]], [[Day]]: result.[[Day]], [[ReferenceISOYear]]: referenceISOYear }. return ISOMonthDay { .month = result->month, .day = result->day, .reference_iso_year = reference_iso_year }; } |