Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial:The CreateArrayIterator abstract operation incorrectly describes the return value as "a Generator". #3468

Closed
wants to merge 1 commit into from

Conversation

sunkai9064
Copy link
Contributor

This is just a description change, as the title states, the error is in 23.1.5.1 CreateArrayIterator:

The abstract operation CreateArrayIterator takes arguments array (an Object) and kind (key+value, key, or value) and returns a Generator.

change to:

The abstract operation CreateArrayIterator takes arguments array (an Object) and kind (key+value, key, or value) and returns an Iterator.

@michaelficarra
Copy link
Member

CreateArrayIterator returns the result of CreateIteratorFromClosure, and CreateIteratorFromClosure returns a Generator.

@sunkai9064
Copy link
Contributor Author

@michaelficarra Oh, yes. CreateIteratorFromClosure returns a Generator. I was wondering why Return “CreateIteratorFromClosure” was not Return “CreateGeneratorFromClosure” and “CreateArrayIterator”. It’s not consistent here. Sorry, I’m not sure about the terminology here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants