1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibJS: Convert Array AOs to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-22 01:34:06 +03:00
parent 3426285738
commit db5df26841
14 changed files with 37 additions and 64 deletions

View file

@ -237,7 +237,7 @@ Array* format_list_to_parts(GlobalObject& global_object, ListFormat const& list_
auto parts = create_parts_from_list(list_format, list);
// 2. Let result be ArrayCreate(0).
auto result = Array::create(global_object, 0);
auto* result = MUST(Array::create(global_object, 0));
// 3. Let n be 0.
size_t n = 0;