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:
parent
8be4cc9653
commit
81b9a2e4a1
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