You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.html
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13927,9 +13927,11 @@ <h1>
13927
13927
1. Let _parameterBindings_ be _parameterNames_.
13928
13928
1. Let _iteratorRecord_ be CreateListIteratorRecord(_argumentsList_).
13929
13929
1. If _hasDuplicates_ is *true*, then
13930
-
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and *undefined*.
13930
+
1. Let _usedEnv_ be *undefined*.
13931
13931
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_.
13933
13935
1. If _hasParameterExpressions_ is *false*, then
13934
13936
1. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
13935
13937
1. Let _instantiatedVarNames_ be a copy of the List _parameterBindings_.
0 commit comments