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
At one point, we had issues with TypeScript allowing for await loops due to TypeScript bugs. Those bugs were addressed but we still ignored those diagnostics. We should remove those diagnostics from the ignored diagnostics.
kitsonk
added a commit
to kitsonk/deno
that referenced
this issue
Sep 17, 2021
At one point, we had issues with TypeScript allowing for await loops due to TypeScript bugs. Those bugs were addressed but we still ignored those diagnostics. We should remove those diagnostics from the ignored diagnostics.
Describe the bug
Using the
await
reserved word inside a normal function (without async) is not being warned by the IDE.To Reproduce
await
in a normal functionExpected behavior
Show an error in the editor saying
await
is only permitted inside async functionsScreenshots
Running the code with
deno run --allow-net mod.ts
fails:Versions
vscode: 1.60.1 deno: 1.14.0 extension: 3.9.1
The text was updated successfully, but these errors were encountered: