Replies: 2 comments 3 replies
-
I took a look at how the spec implements the execution of generators. The best starting point to understand this is here. Generators are implemented via switching the execution context. We was already a discussion about those is #948. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Closing since this has been implemented for a while now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.Beta Was this translation helpful? Give feedback.
All reactions