From b74786d3c34be2c865e10988672fb5e06fb10a44 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 23 Mar 2023 07:39:35 -0400 Subject: [PATCH] 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 --- Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp b/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp index f44b6cb6a7..f915196b57 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp @@ -247,8 +247,8 @@ ThrowCompletionOr> string_list_from_iterable(VM& vm, Value iterab return Vector {}; } - // 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 list;