mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 02:08:58 +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:
parent
8be4cc9653
commit
81b9a2e4a1
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/linusg
Commit: 81b9a2e4a1
Pull-request: https://github.com/SerenityOS/serenity/pull/14278
Reviewed-by: https://github.com/Dexesttp
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue