diff options
author | Linus Groh <mail@linusgroh.de> | 2022-06-15 00:33:21 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-15 17:49:20 +0100 |
commit | 81b9a2e4a12087806eb82c582c6eb130805ab0fa (patch) | |
tree | feefe42099b4d5a00b44569949ae592c2a2824cb | |
parent | 8be4cc9653923bfa0da9609d62e6f7dcd821b0fc (diff) | |
download | serenity-81b9a2e4a12087806eb82c582c6eb130805ab0fa.zip |
LibJS: Mark a call of CreateDateDurationRecord as fallible
This is an editorial change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/5411f62
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp index 0470fe5b2c..1b3efe7f81 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp @@ -757,8 +757,8 @@ ThrowCompletionOr<DateDurationRecord> unbalance_duration_relative(GlobalObject& } } - // 12. Return ! CreateDateDurationRecord(years, months, weeks, days). - return create_date_duration_record(years, months, weeks, days); + // 12. Return ? CreateDateDurationRecord(years, months, weeks, days). + return create_date_duration_record(global_object, years, months, weeks, days); } // 7.5.20 BalanceDurationRelative ( years, months, weeks, days, largestUnit, relativeTo ), https://tc39.es/proposal-temporal/#sec-temporal-balancedurationrelative |