1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibJS: Mark a call of CreateDateDurationRecord as fallible

This is an editorial change in the Temporal spec.

See: 5411f62
This commit is contained in:
Linus Groh 2022-06-15 00:33:21 +01:00
parent 8be4cc9653
commit 81b9a2e4a1

View file

@ -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