From 11234ea5553bf0f5791ebf40752b5a424eca83e7 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 8 Sep 2022 22:54:11 -0400 Subject: [PATCH] Add await to YieldOutsideFunction --- src/check_ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_ast.rs b/src/check_ast.rs index 025174ed71..be4df3f4ef 100644 --- a/src/check_ast.rs +++ b/src/check_ast.rs @@ -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