LibJS: Explicitly provide all GetIterator arguments from Intl.ListFormat

This is an editorial change in the ECMA-402 spec. See:
https://github.com/tc39/ecma402/commit/13895c8
This commit is contained in:
Timothy Flynn 2023-03-23 07:39:35 -04:00 committed by Linus Groh
parent f0d0459c3e
commit b74786d3c3

View file

@ -247,8 +247,8 @@ ThrowCompletionOr<Vector<String>> string_list_from_iterable(VM& vm, Value iterab
return Vector<String> {};
}
// 2. Let iteratorRecord be ? GetIterator(iterable).
auto iterator_record = TRY(get_iterator(vm, iterable));
// 2. Let iteratorRecord be ? GetIterator(iterable, sync).
auto iterator_record = TRY(get_iterator(vm, iterable, IteratorHint::Sync));
// 3. Let list be a new empty List.
Vector<String> list;