You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A 'for-await-of' statement is only allowed within an async function or async generator. (1103)
In the Stage 3 proposal, tc39/proposal-top-level-await#133 was specifically added to address that for await is valid. Therefore the TypeScript implementation is incomplete. While it was implemented in V8 separately, V8 now supports it (as well as potentially other engines).
For us, the side effect of this is that when we "bundle" modules in Deno, and use SystemJS as the target, the emitter doesn't realise the module requires TLA and so it breaks the bundle.
TypeScript Version: 3.8.3
Search Terms:
top level for await
Code
Expected behavior:
To compile without issue.
Actual behavior:
In the Stage 3 proposal, tc39/proposal-top-level-await#133 was specifically added to address that
for await
is valid. Therefore the TypeScript implementation is incomplete. While it was implemented in V8 separately, V8 now supports it (as well as potentially other engines).Playground Link: link
Related Issues: #25988
The text was updated successfully, but these errors were encountered: