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

Support for iterator? #515

Open
etiennemartin opened this issue Jun 6, 2023 · 1 comment
Open

Support for iterator? #515

etiennemartin opened this issue Jun 6, 2023 · 1 comment

Comments

@etiennemartin
Copy link

Does Goja currently have any built in implementations of iterator? I'm attempting to create a custom type that would return an iterator back to the runtime and I'm wondering if I need to build one myself, or if I'm missing a simple way of returning something pre-built.

@etiennemartin etiennemartin changed the title Support for iterator Support for iterator? Jun 6, 2023
@bobvawter
Copy link

It does, there's an example in the godocs: https://pkg.go.dev/github.com/dop251/goja#example-Object.SetSymbol

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

2 participants