mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibJS: Make PrimitiveString::utf8_string() infallible
Work towards #20449.
This commit is contained in:
parent
7849950383
commit
c084269e5f
29 changed files with 79 additions and 93 deletions
|
@ -131,7 +131,7 @@ ThrowCompletionOr<Vector<String>> calendar_fields(VM& vm, Object& calendar, Vect
|
|||
Vector<String> result;
|
||||
TRY_OR_THROW_OOM(vm, result.try_ensure_capacity(list.size()));
|
||||
for (auto& value : list)
|
||||
result.unchecked_append(TRY(value.as_string().utf8_string()));
|
||||
result.unchecked_append(value.as_string().utf8_string());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue