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:
parent
b78cbf88db
commit
20aaa2c236
4 changed files with 23 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue