mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
LibJS: Make GetIterator's hint parameter required
This is an editorial change in the ECMA-262 spec. See:
2562811
This commit is contained in:
parent
5703833116
commit
1760361304
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/trflynn89
Commit: 1760361304
Pull-request: https://github.com/SerenityOS/serenity/pull/20091
7 changed files with 25 additions and 26 deletions
|
@ -226,7 +226,8 @@ ThrowCompletionOr<GroupsType> group_by(VM& vm, Value items, Value callback_funct
|
|||
GroupsType groups;
|
||||
|
||||
// 4. Let iteratorRecord be ? GetIterator(items).
|
||||
auto iterator_record = TRY(get_iterator(vm, items));
|
||||
// FIXME: The Array Grouping proposal is out of date - the `kind` parameter is now required.
|
||||
auto iterator_record = TRY(get_iterator(vm, items, IteratorHint::Sync));
|
||||
|
||||
// 5. Let k be 0.
|
||||
u64 k = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue