Inspectopedia
 
2024.3

Top-level 'await' expression

Error
Code Style
New
Last modified: 03 December 2024

Reports a usage of a top-level await expression.

While the new 'top-level async' proposal is on its way, using await outside async functions is not allowed.