mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Convert Array AOs to ThrowCompletionOr
This commit is contained in:
parent
3426285738
commit
db5df26841
Notes:
sideshowbarker
2024-07-18 02:03:29 +09:00
Author: https://github.com/IdanHo
Commit: db5df26841
Pull-request: https://github.com/SerenityOS/serenity/pull/10568
Reviewed-by: https://github.com/linusg ✅
14 changed files with 37 additions and 64 deletions
|
@ -139,7 +139,7 @@ void IteratorToArray::execute_impl(Bytecode::Interpreter& interpreter) const
|
|||
return;
|
||||
auto* iterator = iterator_or_error.release_value();
|
||||
|
||||
auto array = Array::create(global_object, 0);
|
||||
auto* array = MUST(Array::create(global_object, 0));
|
||||
size_t index = 0;
|
||||
|
||||
while (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue