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

LibJS: Stop propagating small OOM errors from Intl.DurationFormat

This commit is contained in:
Timothy Flynn 2023-08-30 11:35:04 -04:00 committed by Andreas Kling
parent b78cbf88db
commit 20aaa2c236
4 changed files with 23 additions and 23 deletions

View file

@ -110,7 +110,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> DurationFormatConstructor::construct(Fun
auto display_slot = duration_instances_component.set_display_slot;
// c. Let unit be the Unit value.
auto unit = TRY_OR_THROW_OOM(vm, String::from_utf8(duration_instances_component.unit));
auto unit = MUST(String::from_utf8(duration_instances_component.unit));
// d. Let valueList be the Values value.
auto value_list = duration_instances_component.values;