Add await to YieldOutsideFunction

This commit is contained in:
Charlie Marsh 2022-09-08 22:54:11 -04:00
parent b536159541
commit 11234ea555
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ where
));
}
}
ExprKind::Yield { .. } | ExprKind::YieldFrom { .. } => {
ExprKind::Yield { .. } | ExprKind::YieldFrom { .. } | ExprKind::Await { .. } => {
let scope =
&self.scopes[*(self.scope_stack.last().expect("No current scope found."))];
if self