Skip to content

Commit b0d8e30

Browse files
committed
fixup! assert
1 parent fb23a20 commit b0d8e30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13927,9 +13927,11 @@ <h1>
1392713927
1. Let _parameterBindings_ be _parameterNames_.
1392813928
1. Let _iteratorRecord_ be CreateListIteratorRecord(_argumentsList_).
1392913929
1. If _hasDuplicates_ is *true*, then
13930-
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and *undefined*.
13930+
1. Let _usedEnv_ be *undefined*.
1393113931
1. Else,
13932-
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and _env_.
13932+
1. Let _usedEnv_ be _env_.
13933+
1. Assert: The following step cannot return a ReturnCompletion because the only way such a completion can arise in expression position is by use of |YieldExpression|, which is forbidden in parameter lists by Early Error rules in <emu-xref href="#sec-generator-function-definitions-static-semantics-early-errors"></emu-xref> and <emu-xref href="#sec-async-generator-function-definitions-static-semantics-early-errors"></emu-xref>.
13934+
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and _usedEnv_.
1393313935
1. If _hasParameterExpressions_ is *false*, then
1393413936
1. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
1393513937
1. Let _instantiatedVarNames_ be a copy of the List _parameterBindings_.

0 commit comments

Comments
 (0)