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
Expected behavior:
No error thrown. (If renaming this file to .js extension, it would be accepted by runtimes that enables top-level await e.g. Deno, indicating this is accepted by engines like V8)
Actual behavior:
error TS2304: Cannot find name 'await'.
► file:///Users/kun/Projects/Deno/test/tla.ts:5:11
5 const v = await (1);
~~~~~
Playground Link: Not available
Related Issues: Not found
The text was updated successfully, but these errors were encountered:
Sorry, I thought 3.7 turns on top-level await support. Turns out Deno turns off top-level await warnings ourselves and TLA support for TS is not fully completed yet
TypeScript Version: 3.7.2
Search Terms: Top
Code
Expected behavior:
No error thrown. (If renaming this file to
.js
extension, it would be accepted by runtimes that enables top-level await e.g. Deno, indicating this is accepted by engines like V8)Actual behavior:
Playground Link: Not available
Related Issues: Not found
The text was updated successfully, but these errors were encountered: