Skip to content

Comments

fix(lib/core.js): remove required @@iterator method from Iterator#6076

Closed
jedwards1211 wants to merge 1 commit intofacebook:masterfrom
jedwards1211:patch-5
Closed

fix(lib/core.js): remove required @@iterator method from Iterator#6076
jedwards1211 wants to merge 1 commit intofacebook:masterfrom
jedwards1211:patch-5

Conversation

@jedwards1211
Copy link
Contributor

Iterators are not required to be Iterables:
http://devdocs.io/javascript/iteration_protocols

An object is an iterator when it implements a next() method with the following semantics

Some iterators are in turn iterables

`Iterators` are not required to be `Iterables`:
http://devdocs.io/javascript/iteration_protocols

> An object is an iterator when it implements a next() method with the following semantics

> *Some* iterators are in turn iterables
@nmote nmote added the Library definitions Issues or pull requests about core library definitions label Jan 3, 2019
@nmote nmote self-assigned this Feb 14, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@nmote
Copy link
Contributor

nmote commented Feb 14, 2019

Good catch, thanks

@jedwards1211
Copy link
Contributor Author

Closing per discussion in #6075. Thanks for your consideration @nmote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Library definitions Issues or pull requests about core library definitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants