LibJS: Fix GetIterator capitalization in Calendar.prototype.fields

This is an editorial change in the Temporal spec.

See: 8538970
This commit is contained in:
Linus Groh 2022-06-14 23:24:02 +01:00
commit 6c82c9df79
Notes: sideshowbarker 2024-07-17 10:12:12 +09:00

View file

@ -510,7 +510,7 @@ JS_DEFINE_NATIVE_FUNCTION(CalendarPrototype::fields)
// 3. Assert: calendar.[[Identifier]] is "iso8601".
VERIFY(calendar->identifier() == "iso8601"sv);
// 4. Let iteratorRecord be ? Getiterator(fields, sync).
// 4. Let iteratorRecord be ? GetIterator(fields, sync).
auto iterator_record = TRY(get_iterator(global_object, fields, IteratorHint::Sync));
// 5. Let fieldNames be a new empty List.