1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibJS: Mark CreateTemporalDate in ToRelativeTemporalObject as fallible

This is an editorial change in the Temporal spec.

See: 09e9f9c
This commit is contained in:
Linus Groh 2022-06-23 23:11:57 +01:00
parent 3679f671b9
commit 80663d9d3b

View file

@ -712,7 +712,7 @@ ThrowCompletionOr<Value> to_relative_temporal_object(GlobalObject& global_object
return MUST(create_temporal_zoned_date_time(global_object, *epoch_nanoseconds, time_zone.as_object(), *calendar));
}
// 9. Return ! CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar).
// 9. Return ? CreateTemporalDate(result.[[Year]], result.[[Month]], result.[[Day]], calendar).
return TRY(create_temporal_date(global_object, result.year, result.month, result.day, *calendar));
}