mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibJS: Unwrap correct completion in group_by()
This commit is contained in:
parent
419e710c1c
commit
dc5d85b609
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ ThrowCompletionOr<GroupsType> group_by(VM& vm, Value items, Value callback_funct
|
|||
|
||||
// ii. IfAbruptCloseIterator(key, iteratorRecord).
|
||||
if (property_key.is_error())
|
||||
return Completion { *TRY(iterator_close(vm, iterator_record, key.release_error())) };
|
||||
return Completion { *TRY(iterator_close(vm, iterator_record, property_key.release_error())) };
|
||||
|
||||
add_value_to_keyed_group(vm, groups, property_key.release_value(), value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue