mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
LibJS: Explicitly provide all GetIterator arguments from Intl.ListFormat
This is an editorial change in the ECMA-402 spec. See:
13895c8
This commit is contained in:
parent
f0d0459c3e
commit
b74786d3c3
1 changed files with 2 additions and 2 deletions
|
@ -247,8 +247,8 @@ ThrowCompletionOr<Vector<String>> string_list_from_iterable(VM& vm, Value iterab
|
||||||
return Vector<String> {};
|
return Vector<String> {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Let iteratorRecord be ? GetIterator(iterable).
|
// 2. Let iteratorRecord be ? GetIterator(iterable, sync).
|
||||||
auto iterator_record = TRY(get_iterator(vm, iterable));
|
auto iterator_record = TRY(get_iterator(vm, iterable, IteratorHint::Sync));
|
||||||
|
|
||||||
// 3. Let list be a new empty List.
|
// 3. Let list be a new empty List.
|
||||||
Vector<String> list;
|
Vector<String> list;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue