-
-
Notifications
You must be signed in to change notification settings - Fork 634
Implement async / await #818
Copy link
Copy link
Closed
Labels
A-EnhancementNew feature or requestNew feature or requestA-ExecutionIssues or PRs related to code executionIssues or PRs related to code executionC-ParserIssues surrounding the parserIssues surrounding the parserE-HardHard difficulty problemHard difficulty problemHelp WantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
A-EnhancementNew feature or requestNew feature or requestA-ExecutionIssues or PRs related to code executionIssues or PRs related to code executionC-ParserIssues surrounding the parserIssues surrounding the parserE-HardHard difficulty problemHard difficulty problemHelp WantedExtra attention is neededExtra attention is needed
Type
Fields
Give feedbackNo fields configured for issues without a type.
ECMASCript feature
We currently have no support for
async/awaitin Boa. These two keywords are used to create "promises" that will be executed asynchronously, without blocking the execution of the code that follows.There are two types of
asyncconstructs:Implementing this has to be done in two phases. First we need to be able to parse these
asyncconstructs, and for that, we will need new AST nodes and new parsers, that will be called when finding theasynckeyword.After the parsing is done, we need to implement the execution. This will be a bit tricky, since we currently just execute the nodes one by one. This means we need to follow the spec in the "Runtime Semantics" for these two constructs, and implement the needed methods.
This might require further talk in #367.