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

Implement generator.return(argument) method for closing generators #109

Merged
merged 3 commits into from
Aug 17, 2014

Conversation

benjamn
Copy link
Collaborator

@benjamn benjamn commented Apr 12, 2014

This method was proposed in the most recent TC39 meeting, so I decided to see how much trouble it would be to implement. Answer: not much trouble.

Closes #107.

cc @jhusain @amasad @rwaldron @dherman

@rwaldron
Copy link
Contributor

cc @allenwb

@benjamn
Copy link
Collaborator Author

benjamn commented Aug 17, 2014

This has now become part of the spec, so I'm going to merge it as soon as tests pass again (after rebasing): https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator.prototype.return

benjamn added a commit that referenced this pull request Aug 17, 2014
Implement generator.return(argument) method for closing generators.

Now officially part of the ES6 spec: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator.prototype.return
@benjamn benjamn merged commit 6c0ae98 into master Aug 17, 2014
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.

Support generator.return(argument) method for closing generators
2 participants