Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in top level await parse #1136

Open
chema97ic opened this issue Jun 21, 2022 · 1 comment
Open

Error in top level await parse #1136

chema97ic opened this issue Jun 21, 2022 · 1 comment
Labels

Comments

@chema97ic
Copy link

Hi!

Im trying to parse a script that has a simple top level await fetch("https://example.com") and recast is throwing Unexpected identifier error. Is there a way to let it know you are using a module instead of a normal script? the same way you can do with esprima?

@prantlf
Copy link

prantlf commented Aug 20, 2022

Duplicate of #1154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants