Skip to content

Commit

Permalink
revert a mistaken edit
Browse files Browse the repository at this point in the history
An edit for await in catch and finally clauses (#3) snuck into this PR
  • Loading branch information
BillWagner committed Mar 17, 2021
1 parent 8f91536 commit 1c2f2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,7 @@ await_expression
An *await_expression* is only allowed in the body of an async function ([§15.15](classes.md#1515-async-functions)). Within the nearest enclosing async function, an *await_expression* shall not occur in these places:

- Inside a nested (non-async) anonymous function
- In a `catch` or `finally` block of a *try_statement*
- Inside the block of a *lock_statement*
- In an anonymous function conversion to an expression tree type ([§11.7.3](conversions.md#1173-evaluation-of-anonymous-function-conversions-to-expression-tree-types))
- In an unsafe context
Expand Down

0 comments on commit 1c2f2c1

Please sign in to comment.