This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Implement generators #819
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
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.The text was updated successfully, but these errors were encountered: