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

Close iterator after iteration #13

Open
zenparsing opened this issue Feb 15, 2015 · 1 comment
Open

Close iterator after iteration #13

zenparsing opened this issue Feb 15, 2015 · 1 comment

Comments

@zenparsing
Copy link
Owner

The iterator's "return" method should be called in some cases. See the latest spec text.

@zenparsing zenparsing changed the title Close iterator during array destructuring Close iterator after iteration Sep 4, 2015
@zenparsing
Copy link
Owner Author

I've avoided this because

  1. V8 iterators haven't supported return.
  2. It probably makes for-of slower (not verified).

When V8 adds return we're going to need to review this.

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

No branches or pull requests

1 participant