From 99b176b1997ac4f0cc3eda26b68264f050a335ca Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sun, 4 Dec 2022 13:33:50 -0800 Subject: [PATCH] Normative: avoid mostly-redundant await in async `yield*` (#2819) --- spec.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 211afb55cc..fd76f8dbf5 100644 --- a/spec.html +++ b/spec.html @@ -45130,7 +45130,7 @@

1. Let _generatorKind_ be GetGeneratorKind(). - 1. If _generatorKind_ is ~async~, return ? AsyncGeneratorYield(_value_). + 1. If _generatorKind_ is ~async~, return ? AsyncGeneratorYield(? Await(_value_)). 1. Otherwise, return ? GeneratorYield(CreateIterResultObject(_value_, *false*)). @@ -45481,7 +45481,6 @@

1. Assert: _genContext_ is the execution context of a generator. 1. Let _generator_ be the value of the Generator component of _genContext_. 1. Assert: GetGeneratorKind() is ~async~. - 1. Set _value_ to ? Await(_value_). 1. Let _completion_ be NormalCompletion(_value_). 1. Assert: The execution context stack has at least two elements. 1. Let _previousContext_ be the second to top element of the execution context stack.