| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57454 |
Sorry, something went wrong.
|
Would it be better to just use topLevelAwait as the name? |
Sorry, something went wrong.
|
Renamed to topLevelAwait. I prefer to keep this in .state.flags, because currently we have still 20 bits of space that are being "wasted" there :) If anything, I would move sawUnambiguousESM to there. |
Sorry, something went wrong.
There was a problem hiding this comment.
Can you add a test case for module expressions if there aren't such test? The current implementation should already work.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The parser already has this info, and having to detect it by yourself is error prone (due to computed keys and decorators).
We can also use this to warn in the CJS transform when there is top-level await (in a follow-up).