mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibJS: Convert errant MUST to TRY in Temporal.PlainDateTime.with
This commit is contained in:
parent
c3fc8996bf
commit
d5b26183f3
Notes:
github-actions[bot]
2025-01-17 09:09:14 +00:00
Author: https://github.com/trflynn89
Commit: d5b26183f3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3275
2 changed files with 9 additions and 1 deletions
|
@ -289,7 +289,7 @@ JS_DEFINE_NATIVE_FUNCTION(PlainDateTimePrototype::with)
|
|||
auto result = TRY(interpret_temporal_date_time_fields(vm, calendar, fields, overflow));
|
||||
|
||||
// 17. Return ? CreateTemporalDateTime(result, calendar).
|
||||
return MUST(create_temporal_date_time(vm, result, calendar));
|
||||
return TRY(create_temporal_date_time(vm, result, calendar));
|
||||
}
|
||||
|
||||
// 5.3.26 Temporal.PlainDateTime.prototype.withPlainTime ( [ plainTimeLike ] ), https://tc39.es/proposal-temporal/#sec-temporal.plaindatetime.prototype.withplaintime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue