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
allowAwaitOutsideFunction parser option #7634
Comments
What would it be used to? I'd suggest wrapping your code in an async function before parsing it. |
There is now environments like REPLs which support top-level await. |
Sounds fine to me, if someone wants to PR it |
🤘 Do you have an option name preference? |
Any of those work, open to ideas:
|
Ok. I can prep a PR 😋 Update: WIP PR opened at #7637. |
await
.
Found some related issues as reference #6703 |
Implemented in #7637 |
Just as there's a loose mode to allow top-level
return
it would be nice to have some kind of loose mode,allowAwaitEverywhere
, orallowAwaitOutsideFunction
option for top-levelawait
.The text was updated successfully, but these errors were encountered: