Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 generators #819

Closed
Razican opened this issue Oct 8, 2020 · 0 comments
Closed

Implement generators #819

Razican opened this issue Oct 8, 2020 · 0 comments
Labels
E-Hard Hard difficulty problem enhancement New feature or request execution Issues or PRs related to code execution help wanted Extra attention is needed parser Issues surrounding the parser

Comments

@Razican
Copy link
Member

Razican commented Oct 8, 2020

ECMASCript feature
Currently, Boa has no support for Generators. Generators can be synchronous or asynchronous, and you can find the specs here:

This first needs changes in the parser, to check if a the function being defined is a generator or not. Will almost certainly require new AST nodes for that.

Then, it will require implementing the "Runtime Semantics" on the execution side. This will require implementing the new methods mentioned in the spec, and maybe some changes on how we handle #367. This might also collide with #818, since async generators will certainly require asynchronous execution that will be implemented there.

@Razican Razican added enhancement New feature or request help wanted Extra attention is needed parser Issues surrounding the parser execution Issues or PRs related to code execution E-Hard Hard difficulty problem labels Oct 8, 2020
@Lan2u Lan2u self-assigned this Oct 13, 2020
@Lan2u Lan2u removed their assignment Jan 12, 2021
@boa-dev boa-dev locked and limited conversation to collaborators Aug 29, 2021
@Razican Razican closed this as completed Aug 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
E-Hard Hard difficulty problem enhancement New feature or request execution Issues or PRs related to code execution help wanted Extra attention is needed parser Issues surrounding the parser
Projects
None yet
Development

No branches or pull requests

2 participants