Skip to content

Commit 571710d

Browse files
committed
revert an edit for another feature.
An edit from await in catch and finally clauses (#3) snuck in.
1 parent 5bc6b79 commit 571710d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

standard/expressions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,6 +2605,7 @@ await_expression
26052605
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:
26062606

26072607
- Inside a nested (non-async) anonymous function
2608+
- In a `catch` or `finally` block of a *try_statement*
26082609
- Inside the block of a *lock_statement*
26092610
- 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))
26102611
- In an unsafe context

0 commit comments

Comments
 (0)