mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Convert IteratorValue AO to ThrowCompletionOr
This commit is contained in:
committed by
Linus Groh
parent
a64752cd34
commit
7b4814f74c
@@ -134,9 +134,7 @@ JS_DEFINE_OLD_NATIVE_FUNCTION(ArrayConstructor::from)
|
||||
return array;
|
||||
}
|
||||
|
||||
auto next_value = iterator_value(global_object, *next);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
auto next_value = TRY_OR_DISCARD(iterator_value(global_object, *next));
|
||||
|
||||
Value mapped_value;
|
||||
if (map_fn) {
|
||||
|
||||
Reference in New Issue
Block a user