LibJS: Convert IteratorValue AO to ThrowCompletionOr

This commit is contained in:
Timothy Flynn 2021-10-20 09:05:52 -04:00 committed by Linus Groh
commit 7b4814f74c
Notes: sideshowbarker 2024-07-18 02:06:59 +09:00
8 changed files with 20 additions and 21 deletions

View file

@ -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) {