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

Symbol.asyncIterator support #555

Open
bubbajoe opened this issue Mar 3, 2024 · 2 comments
Open

Symbol.asyncIterator support #555

bubbajoe opened this issue Mar 3, 2024 · 2 comments

Comments

@bubbajoe
Copy link

bubbajoe commented Mar 3, 2024

Hello,

I am trying to implement ReadableStream.values async iterator function, but I can't seem to get it to work. I noticed that Symbol.asyncIterator is in the blacklist features for tests. So I have two questions:

  • Is there any plan to add Symbol.asyncIterator support?

  • Is there a way to implement this without the goja's explicit support?

Thanks

@dop251
Copy link
Owner

dop251 commented Mar 5, 2024

Hi,

  • Is there any plan to add Symbol.asyncIterator support?

Yes, but not in the near future I'm afraid.

  • Is there a way to implement this without the goja's explicit support?

Not without a transpiler, you may try https://babeljs.io/docs/babel-plugin-transform-async-generator-functions

@bubbajoe
Copy link
Author

Yes, but not in the near future I'm afraid.

I wouldn't mind trying to tackle this myself; if you could give me a quick summary of the challenge; I would like to at least give it a try.

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