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

Suggestion: function.this to refer to result instance of generator functions #9

Open
bergus opened this issue Apr 4, 2017 · 0 comments

Comments

@bergus
Copy link

bergus commented Apr 4, 2017

Very similar to #4, solving the same issue for generator functions. There it might be even more prominent, as every generator function implicitly behaves like a constructor and has a .prototype that can be used to implement custom methods on generator instances. However, the "instance" cannot be initialised in any way from the generator function or accessed while the generator is running, even though next is a method of the instance.

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