From 81b9a2e4a12087806eb82c582c6eb130805ab0fa Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 15 Jun 2022 00:33:21 +0100 Subject: [PATCH] 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 --- Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp | 4 ++-- 1 file 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 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