Support for top level await
Open
bug
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 859
- Avg merge
- 1h 30m
- Merged PRs (30d)
- 3
Description
## Bug Description
Top level await breaks hermes parser
```
await Promise.resolve()
```
## The Expected Behavior
Top level await is common in certain scenarios, it should be supported at the parser level
Contributor guide
Research direction
Start by reproducing the parser failure with `await Promise.resolve()` and trace the parser entry point that handles top-level statements. The issue is done when Hermes accepts this top-level await syntax without a parser error, with coverage for the example behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100