Open ayroblu opened 2 months ago
Top level await breaks hermes parser
await Promise.resolve()
Top level await is common in certain scenarios, it should be supported at the parser level
That is a good catch. I don't think the parser has a way of understanding the script/module distinction. This might require changing the API.
Bug Description
Top level await breaks hermes parser
The Expected Behavior
Top level await is common in certain scenarios, it should be supported at the parser level