This commit is contained in:
Ilya Kantor 2020-12-22 11:41:58 +03:00
parent fc3f811c03
commit 13da056653

View file

@ -139,6 +139,8 @@ But we can wrap it into an anonymous async function, like this:
... ...
})(); })();
``` ```
P.S. The notable exception is V8 engine version 8.9+, where top-level await works in [modules](info:modules).
```` ````
````smart header="`await` accepts \"thenables\"" ````smart header="`await` accepts \"thenables\""