1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

LibJS: Change "Record {}" to "Iterator Record {}" in comments

This is an editorial change in the ECMA-262 spec.

See: 85d910c
This commit is contained in:
Linus Groh 2022-05-01 01:26:50 +02:00
parent c9bdd59e20
commit 07ac8b7021
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ ThrowCompletionOr<Iterator> create_async_from_sync_iterator(GlobalObject& global
// 3. Let nextMethod be ! Get(asyncIterator, "next").
auto next_method = MUST(async_iterator->get(vm.names.next));
// 4. Let iteratorRecord be the Record { [[Iterator]]: asyncIterator, [[NextMethod]]: nextMethod, [[Done]]: false }.
// 4. Let iteratorRecord be the Iterator Record { [[Iterator]]: asyncIterator, [[NextMethod]]: nextMethod, [[Done]]: false }.
auto iterator_record = Iterator { .iterator = async_iterator, .next_method = next_method, .done = false };
// 5. Return iteratorRecord.

View file

@ -62,7 +62,7 @@ ThrowCompletionOr<Iterator> get_iterator(GlobalObject& global_object, Value valu
// 5. Let nextMethod be ? GetV(iterator, "next").
auto next_method = TRY(iterator.get(global_object, vm.names.next));
// 6. Let iteratorRecord be the Record { [[Iterator]]: iterator, [[NextMethod]]: nextMethod, [[Done]]: false }.
// 6. Let iteratorRecord be the Iterator Record { [[Iterator]]: iterator, [[NextMethod]]: nextMethod, [[Done]]: false }.
auto iterator_record = Iterator { .iterator = &iterator.as_object(), .next_method = next_method, .done = false };
// 7. Return iteratorRecord.