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

Generator function APIs #315

Closed
gabrielschulhof opened this issue Apr 28, 2018 · 3 comments
Closed

Generator function APIs #315

gabrielschulhof opened this issue Apr 28, 2018 · 3 comments

Comments

@gabrielschulhof
Copy link
Collaborator

A way to create generator functions with N-API functions. (You can already
fake it, but real generator functions may help a bit better, will work if
you use the actual generator methods rather than others with the same
name, and may be more efficient in some cases maybe.)

Attaching a finalizer callback to the generator object can also help.

@gabrielschulhof
Copy link
Collaborator Author

Re: nodejs/node#14256

@bnoordhuis
Copy link
Member

How would that work? Note that V8 won't let you create generator functions from C++ either.

@mhdawson
Copy link
Member

I think we can close this. We've not actioned it for a number of years. Closing, please let us know if you think that was not the right thing to do.

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

3 participants